Exemple #1
0
 /// <summary>
 /// Gets the number of items in the specified <see cref="Enum"/>.
 /// </summary>
 /// <typeparam name="TEnum">The type of the enum.</typeparam>
 /// <returns>The member count.</returns>
 public static int Length <TEnum>()
     where TEnum : struct, IComparable, IConvertible, IFormattable
 => ValueCache <TEnum> .Length();
Exemple #2
0
 /// <summary>
 /// Gets the number of items in the specified <see cref="Enum"/>.
 /// </summary>
 /// <typeparam name="TEnum">The type of the enum.</typeparam>
 /// <returns>The member count.</returns>
 public static int Length <TEnum>()
     where TEnum : struct, Enum
 => ValueCache <TEnum> .Length();