C# Class NAnt.Core.Attributes.Int32ValidatorAttribute

Inheritance: NAnt.Core.Attributes.ValidatorAttribute
显示文件 Open project: skolima/NAnt

Public Methods

Method Description
Int32ValidatorAttribute ( ) : System

Initializes a new instance of the Int32ValidatorAttribute class.

Int32ValidatorAttribute ( int minValue, int maxValue ) : System

Initializes a new instance of the Int32ValidatorAttribute class with the specied minimum and maximum values.

Validate ( object value ) : void

Checks whether the specified value can be converted to an Int32 and whether the value lies within the range defined by the MinValue and MaxValue properties.

Method Details

Int32ValidatorAttribute() public method

Initializes a new instance of the Int32ValidatorAttribute class.
public Int32ValidatorAttribute ( ) : System
return System

Int32ValidatorAttribute() public method

Initializes a new instance of the Int32ValidatorAttribute class with the specied minimum and maximum values.
public Int32ValidatorAttribute ( int minValue, int maxValue ) : System
minValue int The minimum value.
maxValue int The maximum value.
return System

Validate() public method

Checks whether the specified value can be converted to an Int32 and whether the value lies within the range defined by the MinValue and MaxValue properties.
/// /// cannot be converted to an . /// /// -or- /// /// is not in the range defined by /// and . /// ///
public Validate ( object value ) : void
value object The value to be checked.
return void