Beispiel #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 (_cache) {
                _cache[info] = new ActionCallInstruction <T0, T1, T2, T3, T4, T5, T6, T7, T8>(method);
            }
            return(info);
        }
        public static MethodInfo CacheAction <T0, T1, T2, T3, T4>(Action <T0, T1, T2, T3, T4> method)
        {
            var info = method.Method;

            lock (_cache) {
                _cache[info] = new ActionCallInstruction <T0, T1, T2, T3, T4>(method);
            }
            return(info);
        }
Beispiel #3
0
        public static MethodInfo CacheAction <T0>(Action <T0> method)
        {
            var info = method.GetMethodInfo();

            lock (_cache) {
                _cache[info] = new ActionCallInstruction <T0>(method);
            }
            return(info);
        }
        public static MethodInfo CacheAction(Action method)
        {
            var info = method.Method;

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