Class EnumerationAttribute<T>
Custom attribute class for decorating enumeration fields with additional data.
Namespace: CapyKit.Attributes
Assembly: CapyKit.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public abstract class EnumerationAttribute<T> : Attribute
Type Parameters
| Name | Description |
|---|---|
| T | Generic type parameter allowing for arbitrary declarations and assignments of meaning. |
Constructors
EnumerationAttribute(T)
Gets the value of the enumeration represented by this attribute.
Declaration
protected EnumerationAttribute(T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Initializes a new instance of the EnumerationAttribute<T> class with a specified value. |
Properties
Value
Initializes a new instance of the EnumerationAttribute<T> class with a specified value.
Declaration
public T Value { get; }
Property Value
| Type | Description |
|---|---|
| T | The value. |