Exemple #1
0
        public void TestStaticGenericMethodInGenericClassWithObj()
        {
            Func <int, int, int> f = (a, b) => {
                var c = C7 <int> .Get(a, new C7A <int, int>(a, b));

                return(c.t + c.u.t + c.u.u);
            };

            this.Test(f);
        }
Exemple #2
0
        public void TestStaticGenericMethodInGenericClass()
        {
            Func <int, bool, int> f = (a, b) => {
                var c = C7 <int> .Get(a, b);

                return(c.t + (c.u ? 1 : -1));
            };

            this.Test(f);
        }