public TRuleTypeShouldConjunction DependOnAny(IEnumerable <Type> types) { _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .DependOnAny(types)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction DependOnAny(string pattern, bool useRegularExpressions = false) { _ruleCreator.AddCondition( ObjectConditionsDefinition <TRuleType> .DependOnAny(pattern, useRegularExpressions)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction DependOnAny(Type firstType, params Type[] moreTypes) { _ruleCreator.AddCondition(ObjectConditionsDefinition <TRuleType> .DependOnAny(firstType, moreTypes)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }