public TRuleTypeShouldConjunction HaveAnyAttributes(IEnumerable <string> patterns, bool useRegularExpressions = false) { _ruleCreator.AddCondition( ObjectConditionsDefinition <TRuleType> .HaveAnyAttributes(patterns, useRegularExpressions)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction HaveAnyAttributes(IEnumerable <Type> attributes) { _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .HaveAnyAttributes(attributes)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction HaveAnyAttributes(Type firstAttribute, params Type[] moreAttributes) { _ruleCreator.AddCondition( ObjectConditionsDefinition <TRuleType> .HaveAnyAttributes(firstAttribute, moreAttributes)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }