Click or drag to resize
EnumExtensionMethodsToStringValue Method (Enum, Int32)
Gets the string value of an enum element from the first KeyStringValue with Key equals to key.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax
C#
public static string ToStringValue(
	this Enum en,
	int key
)

Parameters

en
Type: SystemEnum
Enum
key
Type: SystemInt32
Key of KeyStringValue

Return Value

Type: String
String value of an enum

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