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

◆ Create()

static Expression< TDelegate > System.Linq.Expressions.Expression< TDelegate >.Create ( Expression< TDelegate > body,
string name,
bool tailCall,
IReadOnlyList< ParameterExpression< TDelegate > > parameters )
inlinestaticpackageinherited

Definition at line 5555 of file Expression.cs.

5556 {
5557 if (name == null && !tailCall)
5558 {
5559 return parameters.Count switch
5560 {
5561 0 => new Expression0<TDelegate>(body),
5562 1 => new Expression1<TDelegate>(body, parameters[0]),
5563 2 => new Expression2<TDelegate>(body, parameters[0], parameters[1]),
5564 3 => new Expression3<TDelegate>(body, parameters[0], parameters[1], parameters[2]),
5565 _ => new ExpressionN<TDelegate>(body, parameters),
5566 };
5567 }
5568 return new FullExpression<TDelegate>(body, name, tailCall, parameters);
5569 }