コード例 #1
0
        public void TestListaGeneryczna()
        {
            BrzydkaGenerycznaLista<MyClass> mojaLista = new BrzydkaGenerycznaLista<MyClass>();

            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());

               Debug.WriteLine(mojaLista);
        }
コード例 #2
0
        public void TestListaGeneryczna()

        {
            BrzydkaGenerycznaLista <MyClass> mojaLista = new BrzydkaGenerycznaLista <MyClass>();


            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());
            mojaLista.AddElement(new MyClass());



            Debug.WriteLine(mojaLista);
        }