Exemplo n.º 1
0
        public static IFluentContinuation <TViewModel, TPropertyValue> LessThan <TViewModel, TPropertyValue>(
            this IFluentOperator <TViewModel, TPropertyValue> instance, LateValue <TPropertyValue> lateValue)
            where TViewModel : ViewModelBase
            where TPropertyValue : IComparable
        {
            var implementerInstance = (FluentImplementer <TViewModel, TPropertyValue>)instance;

            implementerInstance.EnsureContextCurrentPropertyIsNotNull();

            implementerInstance.AddToken(ExpressionNode.LessThanLateValue(implementerInstance.Context.CurrentProperty, () => lateValue()));
            return((IFluentContinuation <TViewModel, TPropertyValue>)instance);
        }