コード例 #1
0
 public PropertyValidatorContext(string propertyDescription, object instance, PropertySelector propertyValueFunc, string propertyName, MemberInfo member)
 {
     propertyValueFunc.Guard("propertyValueFunc cannot be null");
     PropertyDescription = propertyDescription;
     Instance = instance;
     messageFormatter = new MessageFormatter();
     this.PropertyName = propertyName;
     this.propertyValueFunc = propertyValueFunc;
     this.Member = member;
 }