EnumStringRepresentationExtensions ToStringRepresentation TEnum  Method (TEnum)Kentico 8.1 API Reference
Converts the enum value to it's string representation.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

value
Type: TEnum
Enum value

Return Value

Type: OnlineString
Returns the string representation of the enum value if it is specified using the EnumStringRepresentationAttribute. Otherwise returns the enum field name.
See Also