C# Class Castle.Components.Validator.NotSameValueValidator

Validates that the content is not set to the specified value
Inheritance: AbstractValidator
ファイルを表示 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
IsValid ( object instance, object fieldValue ) : bool

Validates that the fieldValue is not set to the specified value

NotSameValueValidator ( object value )

Initializes a new instance of the SameAsValidator class.

Protected Methods

Method Description
BuildErrorMessage ( ) : string

Builds the error message.

Method Details

BuildErrorMessage() protected method

Builds the error message.
protected BuildErrorMessage ( ) : string
return string

IsValid() public method

Validates that the fieldValue is not set to the specified value
public IsValid ( object instance, object fieldValue ) : bool
instance object The target type instance
fieldValue object The property/field value. It can be null.
return bool

NotSameValueValidator() public method

Initializes a new instance of the SameAsValidator class.
public NotSameValueValidator ( object value )
value object