コード例 #1
0
 public TGivenRuleTypeConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ImplementInterface(intf));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
コード例 #2
0
 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));
 }
コード例 #4
0
 public TRuleTypeShouldConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }