Пример #1
0
            static void Methods()
            {
                IndexerResultCastTest inst = new IndexerResultCastTest();
                string c = (string)inst.GetString(1);
                string d = (string)inst.GetString(2);

                Console.WriteLine(c, d);
            }
Пример #2
0
            static void BadMethods()
            {
                IndexerResultCastTest inst = new IndexerResultCastTest();
                object c = (string)inst.GetString(1);
                string d = (string)c;

                Console.WriteLine(d + c);
            }