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

◆ GetTestValueType()

static Type System.Linq.Expressions.Compiler.LambdaCompiler.GetTestValueType ( SwitchExpression node)
inlinestaticprivate

Definition at line 3001 of file LambdaCompiler.cs.

3002 {
3003 if (node.Comparison == null)
3004 {
3005 return node.Cases[0].TestValues[0].Type;
3006 }
3007 Type type = node.Comparison.GetParametersCached()[1].ParameterType.GetNonRefType();
3008 if (node.IsLifted)
3009 {
3010 type = type.GetNullableType();
3011 }
3012 return type;
3013 }

References System.type.

Referenced by System.Linq.Expressions.Compiler.LambdaCompiler.EmitSwitchExpression().