Example #1
0
        public void After(DoubleNode node)
        {
            DoubleNode nextNext = _next;

            this._next     = node;
            node._next     = nextNext;
            node._prev     = this;
            nextNext._prev = node;
        }
Example #2
0
        public void Show()
        {
            DoubleNode currentNode = this;

            while (currentNode != null)
            {
                Console.Write(currentNode._data);
                currentNode = currentNode.Prev();
            }
        }
Example #3
0
 public void Modify(DoubleNode node)
 {
     node._test = 9;
 }