Class DoublyLinkedList<T>
- Namespace
- AlgorithmsSW.List
- Assembly
- AlgorithmsSW.dll
[ExerciseReference(1, 3, 31)]
public sealed class DoublyLinkedList<T> : IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
DoublyLinkedList<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Properties
Count
public int Count { get; }
Property Value
First
public DoublyLinkedList<T>.Node First { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
IsSingleton
public bool IsSingleton { get; }
Property Value
Last
public DoublyLinkedList<T>.Node Last { get; }
Property Value
Nodes
public IEnumerable<DoublyLinkedList<T>.Node> Nodes { get; }
Property Value
Methods
Add(T)
public void Add(T item)
Parameters
item
T
Clear()
public void Clear()
Concat(DoublyLinkedList<T>)
public void Concat(DoublyLinkedList<T> other)
Parameters
other
DoublyLinkedList<T>
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.
InsertAfter(Node, T)
public DoublyLinkedList<T>.Node InsertAfter(DoublyLinkedList<T>.Node node, T item)
Parameters
node
DoublyLinkedList<T>.Nodeitem
T
Returns
InsertAtBack(T)
public DoublyLinkedList<T>.Node InsertAtBack(T item)
Parameters
item
T
Returns
InsertAtFront(T)
public DoublyLinkedList<T>.Node InsertAtFront(T item)
Parameters
item
T
Returns
InsertBefore(Node, T)
public DoublyLinkedList<T>.Node InsertBefore(DoublyLinkedList<T>.Node node, T item)
Parameters
node
DoublyLinkedList<T>.Nodeitem
T
Returns
RemoveAfter(Node)
public DoublyLinkedList<T>.Node RemoveAfter(DoublyLinkedList<T>.Node node)
Parameters
node
DoublyLinkedList<T>.Node
Returns
RemoveBefore(Node)
public DoublyLinkedList<T>.Node RemoveBefore(DoublyLinkedList<T>.Node node)
Parameters
node
DoublyLinkedList<T>.Node
Returns
RemoveFromBack()
public DoublyLinkedList<T>.Node RemoveFromBack()
Returns
RemoveFromFront()
public DoublyLinkedList<T>.Node RemoveFromFront()
Returns
RemoveNode(Node)
public DoublyLinkedList<T>.Node RemoveNode(DoublyLinkedList<T>.Node nodeToRemove)
Parameters
nodeToRemove
DoublyLinkedList<T>.Node
Returns
Reverse()
public void Reverse()