public static MethodInfo CacheFunc <T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>(Func <T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet> method) { var info = method.GetMethodInfo(); lock (s_cache) { s_cache[info] = new FuncCallInstruction <T0, T1, T2, T3, T4, T5, T6, T7, T8, TRet>(method); } return(info); }
public static MethodInfo CacheFunc <T0, T1, T2, T3, T4, T5, T6, T7, TRet>(Func <T0, T1, T2, T3, T4, T5, T6, T7, TRet> method) { MethodInfo info = method.Method; lock (_cache) { _cache[info] = new FuncCallInstruction <T0, T1, T2, T3, T4, T5, T6, T7, TRet>(method); } return(info); }