C# Class EvaluateRegexIfPropEqualsValue, code

Inheritance: ValidationAttribute
Afficher le fichier Open project: shendongnian/code

Méthodes publiques

Méthode Description
EvaluateRegexIfPropEqualsValue ( string regex, string prop, object value )

Méthodes protégées

Méthode Description
IsValid ( object value, ValidationContext, obj ) : ValidationResult,

Private Methods

Méthode Description
PropertyContainsValue ( Object obj ) : bool

Method Details

EvaluateRegexIfPropEqualsValue() public méthode

public EvaluateRegexIfPropEqualsValue ( string regex, string prop, object value )
regex string
prop string
value object

IsValid() protected méthode

protected IsValid ( object value, ValidationContext, obj ) : ValidationResult,
value object
obj ValidationContext,
Résultat ValidationResult,