public static int GetEnumTypeSubtype <T>(int Value) { EnumNameAttribute r = GetEnumTypeNameAttribute <T>(Value); if (r != null) { return((r as EnumNameAttribute).Subtype); } else { return(0); } }
public static string GetEnumTypeDescription <T>(int Value) { EnumNameAttribute r = GetEnumTypeNameAttribute <T>(Value); if (r != null) { return((r as EnumNameAttribute).Description); } else { return(null); } }