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