mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-02 23:33:45 +00:00
11 lines
194 B
C#
11 lines
194 B
C#
namespace Utils
|
|
{
|
|
public static class ParseEnum
|
|
{
|
|
public static T Parse<T>(string value)
|
|
{
|
|
return (T)Enum.Parse(typeof(T), value, true);
|
|
}
|
|
}
|
|
}
|