StrictRangeAttribute(long, long, int)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type long.
Declaration
public StrictRangeAttribute(long min, long max, int decimalPlaces = 0)
Parameters
Type | Name | Description |
---|---|---|
long | min | The minimum value. |
long | max | The maximum value. |
int | decimalPlaces | When non-zero, interprets the |
StrictRangeAttribute(int, int, int)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type int.
Declaration
public StrictRangeAttribute(int min, int max, int decimalPlaces = 0)
Parameters
Type | Name | Description |
---|---|---|
int | min | The minimum value. |
int | max | The maximum value. |
int | decimalPlaces | When non-zero, interprets the |
StrictRangeAttribute(short, short)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type short.
Declaration
public StrictRangeAttribute(short min, short max)
Parameters
Type | Name | Description |
---|---|---|
short | min | The minimum value. |
short | max | The maximum value. |
StrictRangeAttribute(sbyte, sbyte)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type sbyte.
Declaration
public StrictRangeAttribute(sbyte min, sbyte max)
Parameters
Type | Name | Description |
---|---|---|
sbyte | min | The minimum value. |
sbyte | max | The maximum value. |
StrictRangeAttribute(ulong, ulong)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type ulong.
Declaration
public StrictRangeAttribute(ulong min, ulong max)
Parameters
Type | Name | Description |
---|---|---|
ulong | min | The minimum value. |
ulong | max | The maximum value. |
StrictRangeAttribute(uint, uint)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type uint.
Declaration
public StrictRangeAttribute(uint min, uint max)
Parameters
Type | Name | Description |
---|---|---|
uint | min | The minimum value. |
uint | max | The maximum value. |
StrictRangeAttribute(ushort, ushort)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type ushort.
Declaration
public StrictRangeAttribute(ushort min, ushort max)
Parameters
Type | Name | Description |
---|---|---|
ushort | min | The minimum value. |
ushort | max | The maximum value. |
StrictRangeAttribute(byte, byte)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type byte.
Declaration
public StrictRangeAttribute(byte min, byte max)
Parameters
Type | Name | Description |
---|---|---|
byte | min | The minimum value. |
byte | max | The maximum value. |
StrictRangeAttribute(double, double)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type double.
Declaration
public StrictRangeAttribute(double min, double max)
Parameters
Type | Name | Description |
---|---|---|
double | min | The minimum value. |
double | max | The maximum value. |
StrictRangeAttribute(float, float)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type float.
Declaration
public StrictRangeAttribute(float min, float max)
Parameters
Type | Name | Description |
---|---|---|
float | min | The minimum value. |
float | max | The maximum value. |
StrictRangeAttribute(decimal, decimal)
Initializes a new instance of the StrictRangeAttribute class specifying bounds of type decimal.
Declaration
public StrictRangeAttribute(decimal min, decimal max)
Parameters
Type | Name | Description |
---|---|---|
decimal | min | The minimum value. |
decimal | max | The maximum value. |