Class EnumExtensionAttribute
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
An attribute to extend an Enum value to have a parameter and description
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class EnumExtensionAttribute : Attribute
- Inheritance
-
EnumExtensionAttribute
- Inherited Members
Constructors
EnumExtensionAttribute(string, string)
Initializes a new instance of the EnumExtensionAttribute class
public EnumExtensionAttribute(string parameter, string description)
Parameters
parameterstringThe parameter equivalent for the value
descriptionstringThe description of the value
Properties
Description
Gets the description for the value
public string Description { get; }
Property Value
Parameter
Gets the parameter for the value
public string Parameter { get; }