AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

Enum<(Of <(<'T>)>)>..::..Count Property

Gets the count of the enum

Namespace:  AdvantageCMS.Core.Common.Extension
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static int Count { get; }

Field Value

The count (int32)

Exceptions


ExceptionCondition
ArgumentExceptionT must be an enumerated type

Examples


C#
int total = Enum<eExampleEnum>.Count; // returns 4 (None, Good, Bad, Entry)