/// <summary> /// Removes all references the <see cref="DoublyLinkedListNode{T}"/> has. /// </summary> internal void Invalidate() { Next = null; Previous = null; List = null; }
public ArrayLinkedList(int capacity) { ReferenceList = new ArrayList <T>(capacity); List = new DoublyLinkedList <T>(); }
/// <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; }