System.Linq.Expressions.Expression.LessThan C# (CSharp) Method

LessThan() public static method

Creates a BinaryExpression that represents a "less than" numeric comparison.
public static LessThan ( Expression left, Expression right ) : BinaryExpression
left Expression An to set the property equal to.
right Expression An to set the property equal to.
return BinaryExpression
        public static BinaryExpression LessThan(Expression left, Expression right)
        {
            return LessThan(left, right, liftToNull: false, method: null);
        }

Same methods

Expression::LessThan ( Expression left, Expression right, bool liftToNull, MethodInfo method ) : BinaryExpression

Usage Example

Ejemplo n.º 1
0
            public Expr ToExpression()
            {
                var exitLabel = Expr.Label();
                var loopBody  = Expr.Block(Body.ToExpression(), Expr.PreIncrementAssign(Iterator.ToExpression()));

                return(Expr.Loop(Expr.IfThenElse(Expr.LessThan(Iterator.ToExpression(), UpperBound.ToExpression()), loopBody, Expr.Break(exitLabel)), exitLabel));
            }
All Usage Examples Of System.Linq.Expressions.Expression::LessThan
Expression