Class EnumValueAttribute
The value to use for an enum value when selected in algorithms, such as IAnswer.SelectedAnswer
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: LemonEdge.Utils.dll
Syntax
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
public sealed class EnumValueAttribute : Attribute
Constructors
EnumValueAttribute(double)
The value for this enum field to be used in calculations
Declaration
public EnumValueAttribute(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The value for this enum field |
EnumValueAttribute(double, string)
Declaration
public EnumValueAttribute(double value, string code)
Parameters
Type | Name | Description |
---|---|---|
double | value | |
string | code |
Properties
Code
The code for this enum field to be used in calculations
Declaration
public string Code { get; }
Property Value
Type | Description |
---|---|
string |
Value
The value for this enum field to be used in calculations
Declaration
public decimal Value { get; }
Property Value
Type | Description |
---|---|
decimal |