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