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

◆ Make()

static ConditionalExpression System.Linq.Expressions.ConditionalExpression.Make ( Expression test,
Expression ifTrue,
Expression ifFalse,
Type type )
inlinestaticpackageinherited

Definition at line 24 of file ConditionalExpression.cs.

25 {
26 if (ifTrue.Type != type || ifFalse.Type != type)
27 {
28 return new FullConditionalExpressionWithType(test, ifTrue, ifFalse, type);
29 }
30 if (ifFalse is DefaultExpression && ifFalse.Type == typeof(void))
31 {
32 return new ConditionalExpression(test, ifTrue);
33 }
34 return new FullConditionalExpression(test, ifTrue, ifFalse);
35 }
ConditionalExpression(Expression test, Expression ifTrue)

References System.Linq.Expressions.ConditionalExpression.ConditionalExpression(), System.Linq.Expressions.Expression< TDelegate >.Type, and System.type.

Referenced by System.Linq.Expressions.Expression< TDelegate >.Condition(), System.Linq.Expressions.Expression< TDelegate >.Condition(), and System.Linq.Expressions.Compiler.StackSpiller.RewriteConditionalExpression().