Example #1
0
 public PropertyValidate(Delegate validator, object value, Type propertyType, PropertyNamePosition key, ILookup <string, object> sourceList)
 {
     SourceList   = sourceList;
     Validator    = validator ?? throw new ArgumentNullException(nameof(validator));
     Value        = value;
     PropertyType = propertyType;
     Key          = key ?? throw new ArgumentNullException(nameof(key));
 }
Example #2
0
 public PropertyValidate(PropertyNamePosition key, ILookup <string, object> sourceList) : this((Func <object, bool>)(v => true), null, typeof(object), key, sourceList)
 {
 }
Example #3
0
 public PropertyValidate(object value, Type propertyType, PropertyNamePosition key, ILookup <string, object> sourceList) : this((Func <object, bool>)(v => true), value, propertyType, key, sourceList)
 {
 }
Example #4
0
 public PropertyValidate(PropertyNamePosition key) : this((Func <object, bool>)(v => true), null, typeof(object), key, null)
 {
 }
Example #5
0
 public PropertyValidate(Type propertyType, PropertyNamePosition key) : this((Func <object, bool>)(v => true), null, propertyType, key, null)
 {
 }
Example #6
0
 public PropertyValidate(Delegate validator, Type propertyType, PropertyNamePosition key) : this((Func <object, bool>)(v => true), default, propertyType, key, null)
 {
 }