Open sandboxFocus

Constructor StrictlyLessThanAttribute

StrictlyLessThanAttribute(long, int)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type long.

Declaration
public StrictlyLessThanAttribute(long max, int decimalPlaces = 0)
Parameters
Type Name Description
long max

The maximum allowed value.

int decimalPlaces

When non-zero, interprets the max number as decimal instead of long by adding a decimal point at the specified position. For instance, if max is set to 1234 and decimalPlaces is set to 3, the max parameter will be reinterpreted as 1.234m.

StrictlyLessThanAttribute(int, int)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type int.

Declaration
public StrictlyLessThanAttribute(int max, int decimalPlaces = 0)
Parameters
Type Name Description
int max

The maximum allowed value.

int decimalPlaces

When non-zero, interprets the max number as decimal instead of long by adding a decimal point at the specified position. For instance, if max is set to 1234 and decimalPlaces is set to 3, the max parameter will be reinterpreted as 1.234m.

StrictlyLessThanAttribute(short)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type short.

Declaration
public StrictlyLessThanAttribute(short max)
Parameters
Type Name Description
short max

The maximum allowed value.

StrictlyLessThanAttribute(sbyte)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type sbyte.

Declaration
public StrictlyLessThanAttribute(sbyte max)
Parameters
Type Name Description
sbyte max

The maximum allowed value.

StrictlyLessThanAttribute(ulong)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type ulong.

Declaration
public StrictlyLessThanAttribute(ulong max)
Parameters
Type Name Description
ulong max

The maximum allowed value.

StrictlyLessThanAttribute(uint)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type uint.

Declaration
public StrictlyLessThanAttribute(uint max)
Parameters
Type Name Description
uint max

The maximum allowed value.

StrictlyLessThanAttribute(ushort)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type ushort.

Declaration
public StrictlyLessThanAttribute(ushort max)
Parameters
Type Name Description
ushort max

The maximum allowed value.

StrictlyLessThanAttribute(byte)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type byte.

Declaration
public StrictlyLessThanAttribute(byte max)
Parameters
Type Name Description
byte max

The maximum allowed value.

StrictlyLessThanAttribute(double)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type double.

Declaration
public StrictlyLessThanAttribute(double max)
Parameters
Type Name Description
double max

The maximum allowed value.

StrictlyLessThanAttribute(float)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type float.

Declaration
public StrictlyLessThanAttribute(float max)
Parameters
Type Name Description
float max

The maximum allowed value.

StrictlyLessThanAttribute(decimal)

Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type decimal.

Declaration
public StrictlyLessThanAttribute(decimal max)
Parameters
Type Name Description
decimal max

The maximum allowed value.