Click or drag to resize
EnumStringRepresentationExtensionsGetOrder Method
Gets the order of the enum value.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static int GetOrder(
	this Enum value
)

Parameters

value
Type: SystemEnum
Enum value

Return Value

Type: Int32
Returns the order of enum item if it is specified using the EnumOrderAttribute. Otherwise returns the int value of the enum value if the enum is based on an int type. Otherwise returns 0.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also