how to get length of enumerator code example Example: c# size of enum var myEnumMemberCount = Enum.GetNames(typeof(MyEnum)).Length;