2
0
mirror of synced 2025-01-11 00:56:05 +00:00
cs-codex-dist-tests/Utils/ParseEnum.cs

11 lines
194 B
C#
Raw Normal View History

2023-06-22 10:17:12 +02:00
namespace Utils
{
public static class ParseEnum
{
public static T Parse<T>(string value)
{
return (T)Enum.Parse(typeof(T), value, true);
}
}
}