Open sandboxFocus

Constructor GreaterThanAttribute

GreaterThanAttribute(long, int)

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

Declaration
public GreaterThanAttribute(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.

GreaterThanAttribute(int, int)

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

Declaration
public GreaterThanAttribute(int min, int decimalPlaces = 0)
Parameters
Type Name Description
int 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.

GreaterThanAttribute(short)

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

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

The minimum allowed value.

GreaterThanAttribute(sbyte)

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

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

The minimum allowed value.

GreaterThanAttribute(ulong)

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

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

The minimum allowed value.

GreaterThanAttribute(uint)

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

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

The minimum allowed value.

GreaterThanAttribute(ushort)

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

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

The minimum allowed value.

GreaterThanAttribute(byte)

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

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

The minimum allowed value.

GreaterThanAttribute(double)

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

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

The minimum allowed value.

GreaterThanAttribute(float)

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

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

The minimum allowed value.

GreaterThanAttribute(decimal)

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

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

The minimum allowed value.