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

◆ IsNull()

static bool System.Linq.Expressions.ConstantCheck.IsNull ( Expression e)
inlinestaticpackage

Definition at line 7 of file ConstantCheck.cs.

8 {
9 return e.NodeType switch
10 {
11 ExpressionType.Constant => ((ConstantExpression)e).Value == null,
12 ExpressionType.Default => e.Type.IsNullableOrReferenceType(),
13 _ => false,
14 };
15 }

References System.Linq.Expressions.Expression< TDelegate >.Type.

Referenced by System.Linq.Expressions.Compiler.LambdaCompiler.EmitBinaryExpression(), and System.Linq.Expressions.Compiler.LambdaCompiler.EmitBranchComparison().