Click or drag to resize
EnumExtensionMethodsToStringValue Method (Enum)
Gets the string value for a given enum element from the StringValue attribute. If passed enum element doesn't contain StringValue attribute, name of the enum element is returned.

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

Parameters

en
Type: SystemEnum
Enum

Return Value

Type: String
String value of an enum element

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