public object this[int index]
        {
            get
            {
                if (index >= count || index < 0)
                {
                    throw new ArgumentOutOfRangeException("out of range");
                }

                DoublyLinkedListNode currNode = this.head;

                for (int i = 0; i < index; i++)
                {
                    currNode = currNode.Next;
                }

                //currNode.Data = value;

                return(null);
            }
        }
 public DoublyLinkedList()
 {
     this.head  = null;
     this.tail  = null;
     this.count = 0;
 }
 public DoublyLinkedListNode(object element, DoublyLinkedListNode prevNode)
 {
     this.Data     = element;
     this.Prev     = prevNode;
     prevNode.Next = this;
 }