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

◆ Lambda() [5/12]

static LambdaExpression System.Linq.Expressions.Expression< TDelegate >.Lambda ( Expression< TDelegate > body,
string? name,
bool tailCall,
IEnumerable< ParameterExpression< TDelegate > >? parameters )
inlinestaticinherited

Definition at line 3342 of file Expression.cs.

3343 {
3344 ContractUtils.RequiresNotNull(body, "body");
3347 Type[] array = new Type[count + 1];
3348 if (count > 0)
3349 {
3351 for (int i = 0; i < count; i++)
3352 {
3353 ParameterExpression parameterExpression = readOnlyCollection[i];
3355 array[i] = (parameterExpression.IsByRef ? parameterExpression.Type.MakeByRefType() : parameterExpression.Type);
3357 {
3358 throw Error.DuplicateVariable(parameterExpression, "parameters", i);
3359 }
3360 }
3361 }
3362 array[count] = body.Type;
3365 }
void Add(TKey key, TValue value)
static void RequiresNotNull(object value, string paramName)
static LambdaExpression CreateLambda(Type delegateType, Expression body, string name, bool tailCall, ReadOnlyCollection< ParameterExpression > parameters)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, System.Linq.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Linq.Expressions.Expression< TDelegate >.CreateLambda(), System.Linq.Expressions.Error.DuplicateVariable(), System.Linq.Expressions.Compiler.DelegateHelpers.MakeDelegateType(), and System.Dynamic.Utils.ContractUtils.RequiresNotNull().