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

◆ GetActionType()

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

Definition at line 208 of file DelegateHelpers.cs.

209 {
210 return types.Length switch
211 {
212 0 => typeof(Action),
213 1 => typeof(Action<>).MakeGenericType(types),
214 2 => typeof(Action<, >).MakeGenericType(types),
215 3 => typeof(Action<, , >).MakeGenericType(types),
216 4 => typeof(Action<, , , >).MakeGenericType(types),
217 5 => typeof(Action<, , , , >).MakeGenericType(types),
218 6 => typeof(Action<, , , , , >).MakeGenericType(types),
219 7 => typeof(Action<, , , , , , >).MakeGenericType(types),
220 8 => typeof(Action<, , , , , , , >).MakeGenericType(types),
221 9 => typeof(Action<, , , , , , , , >).MakeGenericType(types),
222 10 => typeof(Action<, , , , , , , , , >).MakeGenericType(types),
223 11 => typeof(Action<, , , , , , , , , , >).MakeGenericType(types),
224 12 => typeof(Action<, , , , , , , , , , , >).MakeGenericType(types),
225 13 => typeof(Action<, , , , , , , , , , , , >).MakeGenericType(types),
226 14 => typeof(Action<, , , , , , , , , , , , , >).MakeGenericType(types),
227 15 => typeof(Action<, , , , , , , , , , , , , , >).MakeGenericType(types),
228 16 => typeof(Action<, , , , , , , , , , , , , , , >).MakeGenericType(types),
229 _ => null,
230 };
231 }

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