Class ModRangeAttribute
Utility attribute used to restrict an integer field by min, max, and mod (multiple of) values.
Similar to the
Namespace: Algorand.Unity
Assembly: cs.temp.dll.dll
Syntax
public class ModRangeAttribute : PropertyAttribute
Constructors
ModRangeAttribute(Int32, Int32, Int32)
Declaration
public ModRangeAttribute(int min, int max, int mod)
Parameters
Type | Name | Description |
---|---|---|
Int32 | min | |
Int32 | max | |
Int32 | mod |
Properties
Max
The max value this drawer allows.
Declaration
public int Max { get; }
Property Value
Type | Description |
---|---|
Int32 |
Min
The min value this drawer allows.
Declaration
public int Min { get; }
Property Value
Type | Description |
---|---|
Int32 |
Mod
All values this drawer allows must be a multiple of this value.
Declaration
public int Mod { get; }
Property Value
Type | Description |
---|---|
Int32 |