C# Class Castle.Components.Validator.NotSameValueValidator

Validates that the content is not set to the specified value
Inheritance: AbstractValidator
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
BuildErrorMessage ( ) : string

Builds the error message.

Method Details

BuildErrorMessage() protected méthode

Builds the error message.
protected BuildErrorMessage ( ) : string
Résultat string

IsValid() public méthode

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.
Résultat bool

NotSameValueValidator() public méthode

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