C# Class SpecExpress.Rules.RuleValidatorContext

显示文件 Open project: rbell/SpecExpress Class Usage Examples

Public Methods

Method Description
RuleValidatorContext ( object instance, PropertyValidator validator, RuleValidatorContext parentContext ) : System
RuleValidatorContext ( object instance, string propertyName, object propertyValue, ValidationLevelType level, MemberInfo propertyInfo, RuleValidatorContext parentContext ) : System

Private Methods

Method Description
GetValidationProperty ( PropertyValidator validator, Type instanceType ) : PropertyInfo
SelectPropertyName ( object instance, PropertyValidator validator ) : void

Method Details

RuleValidatorContext() public method

public RuleValidatorContext ( object instance, PropertyValidator validator, RuleValidatorContext parentContext ) : System
instance object
validator PropertyValidator
parentContext RuleValidatorContext
return System

RuleValidatorContext() public method

public RuleValidatorContext ( object instance, string propertyName, object propertyValue, ValidationLevelType level, MemberInfo propertyInfo, RuleValidatorContext parentContext ) : System
instance object
propertyName string
propertyValue object
level ValidationLevelType
propertyInfo System.Reflection.MemberInfo
parentContext RuleValidatorContext
return System