예제 #1
0
 public TRuleTypeShouldConjunction NotBe(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(TypeConditionsDefinition <TRuleType> .NotBe(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
예제 #2
0
        //Negations


        public TRuleTypeShouldConjunction NotBe(Type firstType, params Type[] moreTypes)
        {
            _ruleCreator.AddCondition(TypeConditionsDefinition <TRuleType> .NotBe(firstType, moreTypes));
            return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
        }