public static IEnumerable <KeyValuePair <string, string> > GetDictionaryFromStringEnum <TType>() where TType : StringEnum { return(StringEnum.GetValues <TType>() .ToDictionary(k => k.ToString(), v => v.ToDescriptionString())); }