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

◆ GetComparisonOperator()

static BinaryExpression System.Linq.Expressions.Expression< TDelegate >.GetComparisonOperator ( ExpressionType binaryType,
string opName,
Expression< TDelegate > left,
Expression< TDelegate > right,
bool liftToNull )
inlinestaticprivateinherited

Definition at line 1179 of file Expression.cs.

1180 {
1181 if (left.Type == right.Type && left.Type.IsNumeric())
1182 {
1183 if (left.Type.IsNullableType() && liftToNull)
1184 {
1185 return new SimpleBinaryExpression(binaryType, left, right, typeof(bool?));
1186 }
1187 return new LogicalBinaryExpression(binaryType, left, right);
1188 }
1190 }
static BinaryExpression GetUserDefinedBinaryOperatorOrThrow(ExpressionType binaryType, string name, Expression left, Expression right, bool liftToNull)

References System.Linq.Expressions.Expression< TDelegate >.GetUserDefinedBinaryOperatorOrThrow().

Referenced by System.Linq.Expressions.Expression< TDelegate >.GreaterThan(), System.Linq.Expressions.Expression< TDelegate >.GreaterThanOrEqual(), System.Linq.Expressions.Expression< TDelegate >.LessThan(), and System.Linq.Expressions.Expression< TDelegate >.LessThanOrEqual().