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

◆ OnesComplement() [2/2]

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

Definition at line 5238 of file Expression.cs.

5239 {
5241 if (method == null)
5242 {
5243 if (expression.Type.IsInteger())
5244 {
5245 return new UnaryExpression(ExpressionType.OnesComplement, expression, expression.Type, null);
5246 }
5247 return GetUserDefinedUnaryOperatorOrThrow(ExpressionType.OnesComplement, "op_OnesComplement", expression);
5248 }
5250 }
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().