Пример #1
0
 /// <summary>
 /// Gets a singleton instance of <see cref="EnumComparer"/> for the enum type provided.
 /// </summary>
 /// <param name="enumType">The enum type.</param>
 /// <returns>A singleton instance of <see cref="EnumComparer"/> for the enum type provided.</returns>
 /// <exception cref="ArgumentNullException"><paramref name="enumType"/> is <c>null</c>.</exception>
 /// <exception cref="ArgumentException"><paramref name="enumType"/> is not an enum type.</exception>
 public static EnumComparer GetInstance(Type enumType) => Enums.GetCache(enumType).EnumComparer;