public static void InvokeAll <T1, T2>(this Typelist <T1, T2> typelist, MethodInfo baseMethod, object obj, object[] pars) { typelist.MakeGenericMethod(baseMethod).Invoke(obj, pars); InvokeAll(typelist.Tail, baseMethod, obj, pars); }
public static void InvokeAll <T1>(this Typelist <T1> typelist, MethodInfo baseMethod, object obj, object[] pars) { typelist.MakeGenericMethod(baseMethod).Invoke(obj, pars); // tail so no recursion }