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

◆ IsTrue() [2/2]

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

Definition at line 5219 of file Expression.cs.

5220 {
5222 if (method == null)
5223 {
5224 if (expression.Type.IsBool())
5225 {
5226 return new UnaryExpression(ExpressionType.IsTrue, expression, expression.Type, null);
5227 }
5229 }
5231 }
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().