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

◆ GetFuncType()

static Type System.Linq.Expressions.Compiler.DelegateHelpers.GetFuncType ( Type[] types)
inlinestaticpackage

Definition at line 183 of file DelegateHelpers.cs.

184 {
185 return types.Length switch
186 {
187 1 => typeof(Func<>).MakeGenericType(types),
188 2 => typeof(Func<, >).MakeGenericType(types),
189 3 => typeof(Func<, , >).MakeGenericType(types),
190 4 => typeof(Func<, , , >).MakeGenericType(types),
191 5 => typeof(Func<, , , , >).MakeGenericType(types),
192 6 => typeof(Func<, , , , , >).MakeGenericType(types),
193 7 => typeof(Func<, , , , , , >).MakeGenericType(types),
194 8 => typeof(Func<, , , , , , , >).MakeGenericType(types),
195 9 => typeof(Func<, , , , , , , , >).MakeGenericType(types),
196 10 => typeof(Func<, , , , , , , , , >).MakeGenericType(types),
197 11 => typeof(Func<, , , , , , , , , , >).MakeGenericType(types),
198 12 => typeof(Func<, , , , , , , , , , , >).MakeGenericType(types),
199 13 => typeof(Func<, , , , , , , , , , , , >).MakeGenericType(types),
200 14 => typeof(Func<, , , , , , , , , , , , , >).MakeGenericType(types),
201 15 => typeof(Func<, , , , , , , , , , , , , , >).MakeGenericType(types),
202 16 => typeof(Func<, , , , , , , , , , , , , , , >).MakeGenericType(types),
203 17 => typeof(Func<, , , , , , , , , , , , , , , , >).MakeGenericType(types),
204 _ => null,
205 };
206 }

Referenced by System.Linq.Expressions.Expression< TDelegate >.GetFuncType(), System.Linq.Expressions.Compiler.DelegateHelpers.MakeNewDelegate(), System.Runtime.CompilerServices.CallSite< T >.MakeUpdateDelegate(), and System.Linq.Expressions.Expression< TDelegate >.TryGetFuncType().