Click or drag to resize
EnumStringRepresentationExtensionsToLocalizedStringTEnum Method
Converts the enum value to it's localized string representation.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string ToLocalizedString<TEnum>(
	this TEnum value,
	string resourcePrefix
)
where TEnum : struct, new(), IConvertible, IComparable, IFormattable

Parameters

value
Type: TEnum
Enum value
resourcePrefix
Type: SystemString
Resource prefix

Type Parameters

TEnum

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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