Class IntegerAttribute
Specifies that an argument, in a method or function,
must be an integer.
Inheritance
RangeAttribute
IntegerAttribute
Namespace: Mars.Common.Compat
Assembly: Mars.Common.dll
Syntax
public class IntegerAttribute : RangeAttribute
Constructors
IntegerAttribute(Int32, Int32)
Initializes a new instance of the IntegerAttribute class.
Declaration
public IntegerAttribute(int minimum = null, int maximum = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minimum | |
System.Int32 | maximum |
Properties
Maximum
Gets the maximum allowed field value.
Declaration
public int Maximum { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Minimum
Gets the minimum allowed field value.
Declaration
public int Minimum { get; }
Property Value
Type | Description |
---|---|
System.Int32 |