/ Framework / Utils / ParseEnum.cs
ParseEnum.cs
 1  namespace Utils
 2  {
 3      public static class ParseEnum
 4      {
 5          public static T Parse<T>(string value)
 6          {
 7              return (T)Enum.Parse(typeof(T), value, true);
 8          }
 9      }
10  }