Exemplo n.º 1
0
    static void Main(string[] args)
    {
        var doublyLinkedList = new MyDoublyLinkedList <int>();

        doublyLinkedList.Add(5);
        doublyLinkedList.Add(7);
        doublyLinkedList.Add(8);
        doublyLinkedList.Add(7);
        doublyLinkedList.Add(3);
        doublyLinkedList.Add(13);
        doublyLinkedList.Print();
        //doublyLinkedList.Delete(10);
        //doublyLinkedList.Delete(7);
        //   doublyLinkedList.Access(5);
        doublyLinkedList.Reverse();
        doublyLinkedList.Print();
        Console.ReadLine();
    }