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

◆ Create() [2/2]

static BinaryExpression System.Linq.Expressions.BinaryExpression.Create ( ExpressionType nodeType,
Expression left,
Expression right,
Type type,
MethodInfo method,
LambdaExpression conversion )
inlinestaticpackageinherited

Definition at line 239 of file BinaryExpression.cs.

240 {
241 if (conversion != null)
242 {
243 return new CoalesceConversionBinaryExpression(left, right, conversion);
244 }
245 if (method != null)
246 {
247 return new MethodBinaryExpression(nodeType, left, right, type, method);
248 }
249 if (type == typeof(bool))
250 {
251 return new LogicalBinaryExpression(nodeType, left, right);
252 }
253 return new SimpleBinaryExpression(nodeType, left, right, type);
254 }

References System.type.

Referenced by System.Linq.Expressions.Compiler.StackSpiller.RewriteBinaryExpression(), and System.Linq.Expressions.Compiler.StackSpiller.RewriteLogicalBinaryExpression().