Beispiel #1
0
 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);
 }
Beispiel #2
0
 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
 }