C# Class EvaluateRegexIfPropEqualsValue, code

Inheritance: ValidationAttribute
Mostra file Open project: shendongnian/code

Public Methods

Method Description
EvaluateRegexIfPropEqualsValue ( string regex, string prop, object value )

Protected Methods

Method Description
IsValid ( object value, ValidationContext, obj ) : ValidationResult,

Private Methods

Method Description
PropertyContainsValue ( Object obj ) : bool

Method Details

EvaluateRegexIfPropEqualsValue() public method

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

IsValid() protected method

protected IsValid ( object value, ValidationContext, obj ) : ValidationResult,
value object
obj ValidationContext,
return ValidationResult,