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

◆ Increment() [2/2]

static UnaryExpression System.Linq.Expressions.Expression< TDelegate >.Increment ( Expression< TDelegate > expression,
MethodInfo? method )
inlinestaticinherited

Definition at line 5385 of file Expression.cs.

5386 {
5388 if (method == null)
5389 {
5390 if (expression.Type.IsArithmetic())
5391 {
5392 return new UnaryExpression(ExpressionType.Increment, expression, expression.Type, null);
5393 }
5394 return GetUserDefinedUnaryOperatorOrThrow(ExpressionType.Increment, "op_Increment", expression);
5395 }
5397 }
static void RequiresCanRead(Expression expression, string paramName)
static UnaryExpression GetUserDefinedUnaryOperatorOrThrow(ExpressionType unaryType, string name, Expression operand)
static UnaryExpression GetMethodBasedUnaryOperator(ExpressionType unaryType, Expression operand, MethodInfo method)

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