Пример #1
0
 public TGivenRuleTypeConjunction ResideInAssembly(Assembly assembly, params Assembly[] moreAssemblies)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ResideInAssembly(assembly, moreAssemblies));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction ResideInAssembly(Assembly assembly, params Assembly[] moreAssemblies)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ResideInAssembly(assembly, moreAssemblies));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
Пример #3
0
 public TGivenRuleTypeConjunction ResideInAssembly(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         TypePredicatesDefinition <TRuleType> .ResideInAssembly(pattern, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TRuleTypeShouldConjunction ResideInAssembly(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         TypePredicatesDefinition <TReferenceType> .ResideInAssembly(pattern, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }