protected override bool EqualsRule(ClassRule <T> rule) { var genericClassRule = rule as GenericClassRule <T>; return(genericClassRule == null ? false : genericClassRule.assertFunc.Equals(assertFunc)); }
protected override bool EqualsRule(ClassRule <T> rule) { var propertyMustBeLessThanOtherRule = rule as PropertyMustBeLessThanOtherRule <T>; return(propertyMustBeLessThanOtherRule == null ? false : propertyMustBeLessThanOtherRule.propertyName.Equals(propertyName) && propertyMustBeLessThanOtherRule.otherPropertyName.Equals(otherPropertyName)); }
protected abstract bool EqualsRule(ClassRule <T> rule);
protected override bool EqualsRule(ClassRule <T> rule) { return(rule is PropertyMustMatchRule <T>); }