Exemple #1
0
        public void Do1()
        {
            GenericTest <int, string> .DoStatic();

            GenericTest <bool, int> .DoStatic2(false, 42);

            GenericTest <bool, int> .DoStatic3(false, 42, "wow");

            GenericTest <int, string> instance = new GenericTest <int, string>();

            instance.DoExtension(42, "wow", '2');

            Grouping <string, int> x = null;

            x.FirstOrDefault(1234);
        }
Exemple #2
0
        public static void DoExtension <T1, T2, T>(this GenericTest <T1, T2> i, T1 a, T2 b, T c)
        {
            GenericTest <T1, T2> .DoStatic3(a, b, c);

            i.DoInstance(a, b, c);
        }