Question : c# size of enum
Answered by : alex-garbus
var myEnumMemberCount = Enum.GetNames(typeof(MyEnum)).Length;
Source : https://stackoverflow.com/questions/856154/total-number-of-items-defined-in-an-enum | Last Update : Fri, 10 Jul 20
Answered by : alex-garbus
var myEnumMemberCount = Enum.GetNames(typeof(MyEnum)).Length;
Source : https://stackoverflow.com/questions/856154/total-number-of-items-defined-in-an-enum | Last Update : Fri, 10 Jul 20