Example #1
0
 public TRuleTypeShouldConjunction ImplementInterface(Type intf)
 {
     _ruleCreator.AddCondition(
         TypeConditionsDefinition <TRuleType> .ImplementInterface(intf));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Example #2
0
 public TRuleTypeShouldConjunction ImplementInterface(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(
         TypeConditionsDefinition <TRuleType> .ImplementInterface(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }