Open sandboxFocus

Constructor StrictlyGreaterThanAttribute

StrictlyGreaterThanAttribute(long, int)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type long.

Declaration
public StrictlyGreaterThanAttribute(long min, int decimalPlaces = 0)
Parameters
Type Name Description
long min

The minimum allowed value.

int decimalPlaces

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

StrictlyGreaterThanAttribute(int, int)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type int.

Declaration
public StrictlyGreaterThanAttribute(int min, int decimalPlaces = 0)
Parameters
Type Name Description
int min

The minimum allowed value.

int decimalPlaces

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

StrictlyGreaterThanAttribute(short)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type short.

Declaration
public StrictlyGreaterThanAttribute(short min)
Parameters
Type Name Description
short min

The minimum allowed value.

StrictlyGreaterThanAttribute(sbyte)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type sbyte.

Declaration
public StrictlyGreaterThanAttribute(sbyte min)
Parameters
Type Name Description
sbyte min

The minimum allowed value.

StrictlyGreaterThanAttribute(ulong)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type ulong.

Declaration
public StrictlyGreaterThanAttribute(ulong min)
Parameters
Type Name Description
ulong min

The minimum allowed value.

StrictlyGreaterThanAttribute(uint)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type uint.

Declaration
public StrictlyGreaterThanAttribute(uint min)
Parameters
Type Name Description
uint min

The minimum allowed value.

StrictlyGreaterThanAttribute(ushort)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type ushort.

Declaration
public StrictlyGreaterThanAttribute(ushort min)
Parameters
Type Name Description
ushort min

The minimum allowed value.

StrictlyGreaterThanAttribute(byte)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type byte.

Declaration
public StrictlyGreaterThanAttribute(byte min)
Parameters
Type Name Description
byte min

The minimum allowed value.

StrictlyGreaterThanAttribute(double)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type double.

Declaration
public StrictlyGreaterThanAttribute(double min)
Parameters
Type Name Description
double min

The minimum allowed value.

StrictlyGreaterThanAttribute(decimal)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type decimal.

Declaration
public StrictlyGreaterThanAttribute(decimal min)
Parameters
Type Name Description
decimal min

The minimum allowed value.

StrictlyGreaterThanAttribute(float)

Initializes a new instance of the StrictlyGreaterThanAttribute class specifying a minimum value of type float.

Declaration
public StrictlyGreaterThanAttribute(float min)
Parameters
Type Name Description
float min

The minimum allowed value.