コード例 #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);
 }
コード例 #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));
 }
コード例 #3
0
 public IValidationRule ConstructRule(ValidationRuleInstance ruleInstance)
 {
     return((IValidationRule)
            ServiceLocator.Current.GetInstance(ruleInstance.ValidationRuleType));
 }
コード例 #4
0
 public IValidationRule ConstructRule(ValidationRuleInstance ruleInstance)
 {
     return (IValidationRule)
            ServiceLocator.Current.GetInstance(ruleInstance.ValidationRuleType);
 }