Example #1
0
        public static void Main(string[] args)
        {
            MyDoubleLinkedList array = new MyDoubleLinkedList(new int[] { 2, 4, 6, 8, 10 });

            Console.WriteLine(array.Show());
            Console.WriteLine(array.Show());
            foreach (var i in array)
            {
                Console.WriteLine(i);
            }

            Console.WriteLine(array.Length);
        }
Example #2
0
 protected bool Equals(MyDoubleLinkedList other)
 {
     return(Equals(_root, other._root) && Equals(_tail, other._tail) && Length == other.Length);
 }