To the key value pairs.

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static List<KeyValuePair<int, string>> ToKeyValuePairs(
	this Enum enumType
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function ToKeyValuePairs ( 
	enumType As Enum
) As List(Of KeyValuePair(Of Integer, String))

Parameters

enumType
Type: System..::..Enum
Type of the enum defined by GetType.

Return Value

A list of Key Value pairs

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 [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also