Class LooselyLinkedList<T>
Denotes a loosely linked list implementation
Inheritance
LooselyLinkedList<T>
Assembly: NMF.Collections.dll
Syntax
public class LooselyLinkedList<T> : ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name |
Description |
T |
The element type
|
Constructors
|
Edit this page
View Source
LooselyLinkedList()
Declaration
public LooselyLinkedList()
Properties
|
Edit this page
View Source
Count
Declaration
public int Count { get; }
Property Value
|
Edit this page
View Source
First
Declaration
public LooselyLinkedListNode<T> First { get; }
Property Value
|
Edit this page
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
|
Edit this page
View Source
Last
Declaration
public LooselyLinkedListNode<T> Last { get; }
Property Value
|
Edit this page
View Source
Nodes
Declaration
public IEnumerable<LooselyLinkedListNode<T>> Nodes { get; }
Property Value
Methods
|
Edit this page
View Source
Add(LooselyLinkedListNode<T>)
Declaration
public void Add(LooselyLinkedListNode<T> newNode)
Parameters
|
Edit this page
View Source
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
|
Edit this page
View Source
AddAfter(LooselyLinkedListNode<T>, LooselyLinkedListNode<T>)
Adds the given node after the provided node
Declaration
public void AddAfter(LooselyLinkedListNode<T> node, LooselyLinkedListNode<T> newNode)
Parameters
Exceptions
|
Edit this page
View Source
AddAfter(LooselyLinkedListNode<T>, T)
Adds the given value after the provided node
Declaration
public void AddAfter(LooselyLinkedListNode<T> node, T value)
Parameters
Type |
Name |
Description |
LooselyLinkedListNode<T> |
node |
The node after which the new node should be added
|
T |
value |
The value to add
|
|
Edit this page
View Source
AddFirst(LooselyLinkedListNode<T>)
Declaration
public void AddFirst(LooselyLinkedListNode<T> newNode)
Parameters
|
Edit this page
View Source
Clear()
Declaration
|
Edit this page
View Source
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
|
Edit this page
View Source
CopyTo(T[], int)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
T[] |
array |
|
int |
arrayIndex |
|
|
Edit this page
View Source
CutAfter(LooselyLinkedListNode<T>)
Declaration
public void CutAfter(LooselyLinkedListNode<T> node)
Parameters
|
Edit this page
View Source
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
|
Edit this page
View Source
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Implements