developerpublish.com
C# Tips and Tricks #1 – Get the Total Number of Items in an Enum in C# ?
You can get the total number of items defined in an enum in C# using the combination of the Enum.GetNames method and the Length property. How to get the Total Number of Items in an Enum in C# ? The…