Пример #1
0
        public Test()
        {
            MultipleArgs ma = new MultipleArgs();

            ma["1", "2", "3"] = ma["3", "2", "1"];

            ImplementedIndexer ii = new ImplementedIndexer();

            ii["big"] = ii["small"];

            AbstractIndexer ai = ii;

            ai["small"] = ai["big"];

            IIndexable indexable = new ImplementedIndexer2();
            object     o         = indexable[0];
        }
Пример #2
0
        public Test()
        {
            MultipleArgs ma = new MultipleArgs();
            ma["1", "2", "3"] = ma["3", "2", "1"];

            ImplementedIndexer ii = new ImplementedIndexer();
            ii["big"] = ii["small"];

            AbstractIndexer ai = ii;
            ai["small"] = ai["big"];

            IIndexable indexable = new ImplementedIndexer2();
            object o = indexable[0];
        }