cs-codex-dist-tests/Framework/Utils/ParseEnum.cs

11 lines
194 B
C#
Raw Permalink Normal View History

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