Пример #1
0
        protected override Expression BuildExpressionInternal(BuildExpressionContext context)
        {
            var exp = Parent.BuildExpression(context);

            return(RoundingExpressionGenerator.RoundExpression(exp, this.StepSize, RoundingType.Ceil));
        }
Пример #2
0
        protected override Expression BuildExpressionInternal(BuildExpressionContext context)
        {
            var exp = Parent.Parent.Parent.BuildExpression(context);

            return(RoundingExpressionGenerator.RoundExpression(exp, ((StepMultiplierToken)this.Parent).StepSize(), this.Rounding));
        }