Esempio n. 1
0
 public static T As <T>(this Consume c) where T : struct
 {
     return(System.Enum.Parse(typeof(T), c.ToString(), false));
 }