Class PositiveIntegerAttribute
Specifies that an argument, in a method or function,
must be an integer bigger than zero.
Namespace: Mars.Common.Compat
Assembly: Mars.Common.dll
Syntax
public sealed class PositiveIntegerAttribute : IntegerAttribute
Constructors
PositiveIntegerAttribute(Int32, Int32)
Initializes a new instance of the PositiveIntegerAttribute class.
Declaration
public PositiveIntegerAttribute(int minimum = 1, int maximum = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minimum | |
System.Int32 | maximum |