Example #1
0
 public static Action<T1, T2, T3, T4, T5> AsAction<T1, T2, T3, T4, T5>(this MethodBase mb)
 {
     return mb.AsDelegate<Action<T1, T2, T3, T4, T5>>();
 }
Example #2
0
 public static Func<T1, T2, T3, T4, T5, T6, T7, T8, TRes> AsFunc<T1, T2, T3, T4, T5, T6, T7, T8, TRes>(this MethodBase mb)
 {
     return mb.AsDelegate<Func<T1, T2, T3, T4, T5, T6, T7, T8, TRes>>();
 }
Example #3
0
 public static Action<T> AsAction<T>(this MethodBase mb)
 {
     return mb.AsDelegate<Action<T>>();
 }
Example #4
0
 public static Func<T1, TRes> AsFunc<T1, TRes>(this MethodBase mb)
 {
     return mb.AsDelegate<Func<T1, TRes>>();
 }