Class EnumStringRepresentationAttribute
Specifies the string representation for an enum field.
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class EnumStringRepresentationAttribute : Attribute
- Inheritance
-
objectAttributeEnumStringRepresentationAttribute
- Extension Methods
Constructors
EnumStringRepresentationAttribute(string)
Specifies the string representation for an enum field.
public EnumStringRepresentationAttribute(string stringRepresentation)
Parameters
stringRepresentationstringString representation of the attributed enum field
Properties
StringRepresentation
Gets the string representation value.
public string StringRepresentation { get; }
Property Value
- string