Answers for "c# get number of items in enum"

C#
7

count number of enum values C#

int count = Enum.GetValues(typeof(EnumType)).Length;
Posted by: Guest on May-04-2020
0

c# get amount of elements in enum

int count = Enum.GetValues( typeof( ContentAlignment ) ).Length;
Posted by: Guest on April-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language