Example #1
0
        public static MethodInfo CacheAction <T0, T1, T2, T3, T4, T5, T6, T7, T8>(Action <T0, T1, T2, T3, T4, T5, T6, T7, T8> method)
        {
            var info = method.GetMethodInfo();

            lock (s_cache) {
                s_cache[info] = new ActionCallInstruction <T0, T1, T2, T3, T4, T5, T6, T7, T8>(method);
            }
            return(info);
        }
Example #2
0
        public static MethodInfo CacheAction <T0>(Action <T0> method)
        {
            var info = method.GetMethodInfo();

            lock (s_cache) {
                s_cache[info] = new ActionCallInstruction <T0>(method);
            }
            return(info);
        }
Example #3
0
        public static MethodInfo CacheAction <T0, T1, T2, T3, T4, T5, T6>(Action <T0, T1, T2, T3, T4, T5, T6> method)
        {
            MethodInfo info = method.Method;

            lock (_cache)
            {
                _cache[info] = new ActionCallInstruction <T0, T1, T2, T3, T4, T5, T6>(method);
            }
            return(info);
        }
Example #4
0
        public static MethodInfo CacheAction(Action method)
        {
            MethodInfo info = method.Method;

            lock (_cache)
            {
                _cache[info] = new ActionCallInstruction(method);
            }
            return(info);
        }