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

◆ ValidateBinary()

static BinaryExpression System.Linq.Expressions.ExpressionVisitor.ValidateBinary ( BinaryExpression before,
BinaryExpression after )
inlinestaticprivateinherited

Definition at line 355 of file ExpressionVisitor.cs.

356 {
357 if (before != after && before.Method == null)
358 {
359 if (after.Method != null)
360 {
361 throw Error.MustRewriteWithoutMethod(after.Method, "VisitBinary");
362 }
363 ValidateChildType(before.Left.Type, after.Left.Type, "VisitBinary");
364 ValidateChildType(before.Right.Type, after.Right.Type, "VisitBinary");
365 }
366 return after;
367 }
static void ValidateChildType(Type before, Type after, string methodName)

References System.Linq.Expressions.BinaryExpression.Left, System.Linq.Expressions.BinaryExpression.Method, System.Linq.Expressions.Error.MustRewriteWithoutMethod(), System.Linq.Expressions.BinaryExpression.Right, System.Linq.Expressions.Expression< TDelegate >.Type, and System.Linq.Expressions.ExpressionVisitor.ValidateChildType().

Referenced by System.Linq.Expressions.ExpressionVisitor.VisitBinary().