Exemplo n.º 1
0
        public static Conditional <T> CreateConditional <T>(this Is <T> @is, Predicate <T> predicate, T value)
        {
            var conditional = new Conditional <T>(@is, predicate, value);

            @is.Negate = false;

            if ([email protected]())
            {
                @is.Conditionals.Add(new List <Conditional <T> >());
            }

            @is.Conditionals.Last().Add(conditional);

            return(conditional);
        }
Exemplo n.º 2
0
        public static Is <T> And <T>(this Conditional <T> conditional)
        {
            conditional.Is.Negate = false;

            return(conditional.Is);
        }