Table of Contents

Class EnumStringRepresentationAttribute

Namespace
CMS.Helpers
Assembly
CMS.Helpers.dll

Specifies the string representation for an enum field.

[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class EnumStringRepresentationAttribute : Attribute
Inheritance
object
Attribute
EnumStringRepresentationAttribute
Extension Methods

Constructors

EnumStringRepresentationAttribute(string)

Specifies the string representation for an enum field.

public EnumStringRepresentationAttribute(string stringRepresentation)

Parameters

stringRepresentation string

String representation of the attributed enum field

Properties

StringRepresentation

Gets the string representation value.

public string StringRepresentation { get; }

Property Value

string