get length of enum values
Code Example - get length of enum values
int count = Enum.GetValues(typeof(SystemTypeEnum)).Length;
int count = Enum.GetValues(typeof(SystemTypeEnum)).Length;