Exemplo n.º 1
0
 public CustomConstraintAttributes(IsObjectValidDelegate isObjectValidDelegate, PropertyDefinition[] relevantProperties)
 {
     this.IsObjectValidDelegate = isObjectValidDelegate;
     this.RelevantProperties    = relevantProperties;
 }
Exemplo n.º 2
0
 internal CustomConstraint(string constraintDescription, PropertyDefinition[] relevantProperties, IsObjectValidDelegate validationDelegate, bool objectIsValidIfDelegateIsTrue) : base(relevantProperties)
 {
     this.constraintDescription         = constraintDescription;
     this.validationDelegate            = validationDelegate;
     this.propertyDefinition            = relevantProperties[0];
     this.objectIsValidIfDelegateIsTrue = objectIsValidIfDelegateIsTrue;
 }