Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Decrement() [2/2]

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

Definition at line 5404 of file Expression.cs.

5405 {
5407 if (method == null)
5408 {
5409 if (expression.Type.IsArithmetic())
5410 {
5411 return new UnaryExpression(ExpressionType.Decrement, expression, expression.Type, null);
5412 }
5413 return GetUserDefinedUnaryOperatorOrThrow(ExpressionType.Decrement, "op_Decrement", expression);
5414 }
5416 }
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().