RoundExpression() public static method

public static RoundExpression ( Expression value, decimal multiplier, RoundingType rounding ) : Expression
value System.Linq.Expressions.Expression
multiplier decimal
rounding RoundingType
return System.Linq.Expressions.Expression
        protected override Expression BuildExpressionInternal(BuildExpressionContext context)
        {
            var exp = Parent.BuildExpression(context);

            return(RoundingExpressionGenerator.RoundExpression(exp, this.StepSize, RoundingType.Ceil));
        }
        protected override Expression BuildExpressionInternal(BuildExpressionContext context)
        {
            var exp = Parent.Parent.Parent.BuildExpression(context);

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