Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LessThan() [2/2]

static BinaryExpression System.Linq.Expressions.Expression< TDelegate >.LessThan ( Expression< TDelegate > left,
Expression< TDelegate > right,
bool liftToNull,
MethodInfo? method )
inlinestaticinherited

Definition at line 1136 of file Expression.cs.

1137 {
1138 ExpressionUtils.RequiresCanRead(left, "left");
1139 ExpressionUtils.RequiresCanRead(right, "right");
1140 if (method == null)
1141 {
1142 return GetComparisonOperator(ExpressionType.LessThan, "op_LessThan", left, right, liftToNull);
1143 }
1144 return GetMethodBasedBinaryOperator(ExpressionType.LessThan, left, right, method, liftToNull);
1145 }
static void RequiresCanRead(Expression expression, string paramName)
static BinaryExpression GetMethodBasedBinaryOperator(ExpressionType binaryType, Expression left, Expression right, MethodInfo method, bool liftToNull)
static BinaryExpression GetComparisonOperator(ExpressionType binaryType, string opName, Expression left, Expression right, bool liftToNull)

References System.Linq.Expressions.Expression< TDelegate >.GetComparisonOperator(), System.Linq.Expressions.Expression< TDelegate >.GetMethodBasedBinaryOperator(), and System.Dynamic.Utils.ExpressionUtils.RequiresCanRead().