Exemplo n.º 1
0
 public bool Equals(ValidationRuleInstance other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.ToCheckExpression, ToCheckExpression) && Equals(other.ToCompareExpression, ToCompareExpression) &&
            Equals(other.UIAttributeExpression, UIAttributeExpression) &&
            Equals(other.ValidationRuleType, ValidationRuleType) && other.ArrayRule.Equals(ArrayRule) &&
            Equals(other.ShouldApply, ShouldApply);
 }
Exemplo n.º 2
0
 public bool Equals(ValidationRuleInstance other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.ToCheckExpression, ToCheckExpression) && Equals(other.ToCompareExpression, ToCompareExpression) &&
            Equals(other.UIAttributeExpression, UIAttributeExpression) &&
            Equals(other.ValidationRuleType, ValidationRuleType) && other.ArrayRule.Equals(ArrayRule) &&
            Equals(other.ShouldApply, ShouldApply));
 }
 public IValidationRule ConstructRule(ValidationRuleInstance ruleInstance)
 {
     return((IValidationRule)
            ServiceLocator.Current.GetInstance(ruleInstance.ValidationRuleType));
 }
 public IValidationRule ConstructRule(ValidationRuleInstance ruleInstance)
 {
     return (IValidationRule)
            ServiceLocator.Current.GetInstance(ruleInstance.ValidationRuleType);
 }