コード例 #1
0
        public static void CallInit <TCt, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>(this ILogic logic, TCt ct, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17)
        {
            var method = BaseClassFindInit._findMethod(ct as Type, new object[] { t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17 }, new Type[] { typeof(T1), typeof(T2), typeof(T3), typeof(T4), typeof(T5), typeof(T6), typeof(T7), typeof(T8), typeof(T9), typeof(T10), typeof(T11), typeof(T12), typeof(T13), typeof(T14), typeof(T15), typeof(T16), typeof(T17) });

            if (method != null)
            {
                method.Invoke(logic, new object[] { t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17 });
            }
        }
コード例 #2
0
        public static void CallInit <TCt, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this ILogic logic, TCt ct, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9)
        {
            var method = BaseClassFindInit._findMethod(ct as Type, new object[] { t1, t2, t3, t4, t5, t6, t7, t8, t9 }, new Type[] { typeof(T1), typeof(T2), typeof(T3), typeof(T4), typeof(T5), typeof(T6), typeof(T7), typeof(T8), typeof(T9) });

            if (method != null)
            {
                method.Invoke(logic, new object[] { t1, t2, t3, t4, t5, t6, t7, t8, t9 });
            }
        }
コード例 #3
0
        public static void CallInit <TCt, T1, T2, T3, T4, T5>(this ILogic logic, TCt ct, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
        {
            var method = BaseClassFindInit._findMethod(ct as Type, new object[] { t1, t2, t3, t4, t5 }, new Type[] { typeof(T1), typeof(T2), typeof(T3), typeof(T4), typeof(T5) });

            if (method != null)
            {
                method.Invoke(logic, new object[] { t1, t2, t3, t4, t5 });
            }
        }
コード例 #4
0
        public static void CallInit <TCt, T1, T2>(this ILogic logic, TCt ct, T1 t1, T2 t2)
        {
            var method = BaseClassFindInit._findMethod(ct as Type, new object[] { t1, t2 }, new Type[] { typeof(T1), typeof(T2) });

            if (method != null)
            {
                method.Invoke(logic, new object[] { t1, t2 });
            }
        }
コード例 #5
0
        public static void CallInit <TCt>(this ILogic logic, TCt ct)
        {
            var method = BaseClassFindInit._findMethod(ct as Type, null, null);

            if (method != null)
            {
                method.Invoke(logic, null);
            }
        }
コード例 #6
0
        public static void CallBaseInit <TCt, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(this ILogic logic, TCt ct, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12)
        {
            var type = ct as Type;

            if (type != null)
            {
                var method = BaseClassFindInit._findMethod(type.BaseType, new object[] { t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12 }, new Type[] { typeof(T1), typeof(T2), typeof(T3), typeof(T4), typeof(T5), typeof(T6), typeof(T7), typeof(T8), typeof(T9), typeof(T10), typeof(T11), typeof(T12) });
                if (method != null)
                {
                    method.Invoke(logic, new object[] { t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12 });
                }
            }
        }
コード例 #7
0
        public static void CallBaseInit <TCt, T1, T2, T3, T4, T5, T6, T7>(this ILogic logic, TCt ct, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
        {
            var type = ct as Type;

            if (type != null)
            {
                var method = BaseClassFindInit._findMethod(type.BaseType, new object[] { t1, t2, t3, t4, t5, t6, t7 }, new Type[] { typeof(T1), typeof(T2), typeof(T3), typeof(T4), typeof(T5), typeof(T6), typeof(T7) });
                if (method != null)
                {
                    method.Invoke(logic, new object[] { t1, t2, t3, t4, t5, t6, t7 });
                }
            }
        }
コード例 #8
0
        public static void CallBaseInit <TCt, T1, T2, T3>(this ILogic logic, TCt ct, T1 t1, T2 t2, T3 t3)
        {
            var type = ct as Type;

            if (type != null)
            {
                var method = BaseClassFindInit._findMethod(type.BaseType, new object[] { t1, t2, t3 }, new Type[] { typeof(T1), typeof(T2), typeof(T3) });
                if (method != null)
                {
                    method.Invoke(logic, new object[] { t1, t2, t3 });
                }
            }
        }