Click or drag to resize
EnumExtensionMethods Class
Enum extension methods which works with StringValueAttribute and KeyStringValueAttribute.
Inheritance Hierarchy
SystemObject
  CMS.ChatEnumExtensionMethods

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public static class EnumExtensionMethods
Methods
  NameDescription
Public methodStatic memberToStringValue(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.
Public methodStatic memberToStringValue(Enum, Int32)
Gets the string value of an enum element from the first KeyStringValue with Key equals to key.
Top
See Also