get enum length code example Example: get length of enum values int count = Enum.GetValues(typeof(SystemTypeEnum)).Length;