public TGivenRuleTypeConjunction AreAssignableTo(IEnumerable <string> patterns, bool useRegularExpressions = false) { _ruleCreator.AddPredicate( TypePredicatesDefinition <TRuleType> .AreAssignableTo(patterns, useRegularExpressions)); return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction AreAssignableTo(IEnumerable <string> patterns, bool useRegularExpressions = false) { _ruleCreator.ContinueComplexCondition( TypePredicatesDefinition <TReferenceType> .AreAssignableTo(patterns, useRegularExpressions)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TGivenRuleTypeConjunction AreAssignableTo(IEnumerable <Type> types) { _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreAssignableTo(types)); return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator)); }
public TGivenRuleTypeConjunction AreAssignableTo(Type firstType, params Type[] moreTypes) { _ruleCreator.AddPredicate(TypePredicatesDefinition <TRuleType> .AreAssignableTo(firstType, moreTypes)); return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction AreAssignableTo(IEnumerable <Type> types) { _ruleCreator.ContinueComplexCondition(TypePredicatesDefinition <TReferenceType> .AreAssignableTo(types)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }
public TRuleTypeShouldConjunction AreAssignableTo(Type firstType, params Type[] moreTypes) { _ruleCreator.ContinueComplexCondition( TypePredicatesDefinition <TReferenceType> .AreAssignableTo(firstType, moreTypes)); return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator)); }