Example #1
0
 /// <summary>
 /// Removes all references the <see cref="DoublyLinkedListNode{T}"/> has.
 /// </summary>
 internal void Invalidate()
 {
     Next     = null;
     Previous = null;
     List     = null;
 }
Example #2
0
        public ArrayLinkedList(int capacity)
        {
            ReferenceList = new ArrayList <T>(capacity);

            List = new DoublyLinkedList <T>();
        }
Example #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="DoublyLinkedListNode{T}"/> with the specified value and the specified list.
 /// </summary>
 /// <param name="value">The value contained in the <see cref="DoublyLinkedListNode{T}"/>.</param>
 /// <param name="list">The <see cref="DoublyLinkedList{T}"/> that the <see cref="DoublyLinkedListNode{T}"/> belongs to.</param>
 internal DoublyLinkedListNode(T value, DoublyLinkedList <T> list)
 {
     Value = value;
     List  = list;
 }