Open sandboxFocus

Constructor GreaterThanOrEqualAttribute

GreaterThanOrEqualAttribute(long, int)

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

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

GreaterThanOrEqualAttribute(int, int)

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

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

GreaterThanOrEqualAttribute(short)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(sbyte)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(ulong)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(uint)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(ushort)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(byte)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(double)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(float)

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

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

The minimum allowed value.

GreaterThanOrEqualAttribute(decimal)

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

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

The minimum allowed value.