Пример #1
0
 public TGivenRuleTypeConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ImplementInterface(intf));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ImplementInterface(intf));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Пример #3
0
 public TGivenRuleTypeConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }