Class EnumUtil
Utility class for enum operations.
public static class EnumUtil
- Inheritance
-
EnumUtil
- Inherited Members
Methods
GetEnumBitArrayCap(Type)
Gets the capacity needed for a bit array to represent all values of an enum type.
public static int GetEnumBitArrayCap(Type enumType)
Parameters
enumType
TypeThe enum type
Returns
- int
The maximum value in the enum plus 1
GetEnumBitArrayCap<TEnum>()
Gets the capacity needed for a bit array to represent all values of an enum type.
public static int GetEnumBitArrayCap<TEnum>() where TEnum : struct, Enum
Returns
- int
The maximum value in the enum plus 1
Type Parameters
TEnum
The enum type