/// <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();
/// <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();