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

            doublyLinkedList.AddLast("str1");
            doublyLinkedList.AddLast("str2");
            doublyLinkedList.AddLast("str3");

            var array = doublyLinkedList.ToList();

            Console.WriteLine(doublyLinkedList.Contains("str"));
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var doublyLinkedList = new DoublyLinkedList <string>();

            doublyLinkedList.AddLast("str1");
            doublyLinkedList.AddLast("str2");
            doublyLinkedList.AddLast("str3");

            var array = doublyLinkedList.ToList();

            foreach (var item in doublyLinkedList)
            {
                Console.WriteLine(item);
            }
        }