예제 #1
0
파일: StartUp.cs 프로젝트: krum142/SoftUni
        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"));
        }
예제 #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);
            }
        }