Пример #1
0
 /// <summary>Returns a dictionary that maps the string representation of each of the named constants of
 /// <typeparamref name="TEnum"/> to its named constant.</summary>
 /// <typeparam name="TEnum">The enumeration type.</typeparam>
 /// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an Enum.</exception>
 public static IReadOnlyDictionary <string, TEnum> GetNameValueMap <TEnum>()
     where TEnum : struct
 {
     return(EnumCache <TEnum> .GetNameValueMap());
 }