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

◆ UnaryPlus() [2/2]

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

Definition at line 5138 of file Expression.cs.

5139 {
5141 if (method == null)
5142 {
5143 if (expression.Type.IsArithmetic())
5144 {
5145 return new UnaryExpression(ExpressionType.UnaryPlus, expression, expression.Type, null);
5146 }
5147 return GetUserDefinedUnaryOperatorOrThrow(ExpressionType.UnaryPlus, "op_UnaryPlus", expression);
5148 }
5150 }
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().