Esempio n. 1
0
        public static CompareNode <T, TProperty> Compare <T, TProperty>(this RuntimeConfigurator configurator,
                                                                        Comparator <TProperty, TProperty> comparator,
                                                                        Value <TProperty> value)
            where T : class
        {
            TokenValueFactory <T, TProperty> tokenValue = Conditionals.Property <T, TProperty>();

            return(configurator.CreateNode(id => new CompareNode <T, TProperty>(id, tokenValue, comparator, value)));
        }
Esempio n. 2
0
        public static CompareNode <T, TProperty> Compare <T, TProperty>(this RuntimeConfigurator configurator,
                                                                        Comparator <TProperty, TProperty> comparator,
                                                                        TProperty value)
            where T : class
        {
            Value <TProperty> rightValue = Conditionals.Constant(value);

            return(Compare <T, TProperty>(configurator, comparator, rightValue));
        }