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