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

◆ GetParameterTypes()

static Type[] System.Linq.Expressions.Compiler.LambdaCompiler.GetParameterTypes ( LambdaExpression lambda,
Type firstType )
inlinestaticprivate

Definition at line 2321 of file LambdaCompiler.cs.

2322 {
2323 int parameterCount = lambda.ParameterCount;
2324 Type[] array;
2325 int num;
2326 if (firstType != null)
2327 {
2328 array = new Type[parameterCount + 1];
2329 array[0] = firstType;
2330 num = 1;
2331 }
2332 else
2333 {
2334 array = new Type[parameterCount];
2335 num = 0;
2336 }
2337 int num2 = 0;
2338 while (num2 < parameterCount)
2339 {
2340 ParameterExpression parameter = lambda.GetParameter(num2);
2341 array[num] = (parameter.IsByRef ? parameter.Type.MakeByRefType() : parameter.Type);
2342 num2++;
2343 num++;
2344 }
2345 return array;
2346 }

References System.array.

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