count number of enum values csharp
Code Example - count number of enum values csharp
int count = Enum.GetValues(typeof(EnumType)).Length;
int count = Enum.GetValues(typeof(EnumType)).Length;