MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsStrictly­Greater­Than­AttributeStrictly­Greater­Than­Attribute
Open sandboxFocus

StrictlyGreaterThanAttribute Constructor

StrictlyGreaterThanAttribute(Int64, Int32)

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

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

The minimum allowed value.

Int32 decimalPlaces

When non-zero, interprets the min number as Decimal instead of Int64 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(Int32, Int32)

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

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

The minimum allowed value.

Int32 decimalPlaces

When non-zero, interprets the min number Decimal instead of Int64 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(Int16)

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

Declaration
public StrictlyGreaterThanAttribute(short min)
Parameters
Type Name Description
Int16 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(UInt64)

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

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

The minimum allowed value.

StrictlyGreaterThanAttribute(UInt32)

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

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

The minimum allowed value.

StrictlyGreaterThanAttribute(UInt16)

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

Declaration
public StrictlyGreaterThanAttribute(ushort min)
Parameters
Type Name Description
UInt16 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(Single)

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

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

The minimum allowed value.