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

◆ GreaterThan() [2/2]

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

Definition at line 1120 of file Expression.cs.

1121 {
1122 ExpressionUtils.RequiresCanRead(left, "left");
1123 ExpressionUtils.RequiresCanRead(right, "right");
1124 if (method == null)
1125 {
1126 return GetComparisonOperator(ExpressionType.GreaterThan, "op_GreaterThan", left, right, liftToNull);
1127 }
1128 return GetMethodBasedBinaryOperator(ExpressionType.GreaterThan, left, right, method, liftToNull);
1129 }
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().