Show / Hide Table of Contents

Class LooselyLinkedList<T>

Denotes a loosely linked list implementation

Inheritance
object
LooselyLinkedList<T>
Implements
ICollection<T>
IEnumerable<T>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Collections.Generic
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()

Creates a new instance

Declaration
public LooselyLinkedList()

Properties

| Edit this page View Source

Count

Declaration
public int Count { get; }
Property Value
Type Description
int
| Edit this page View Source

First

Gets the first node

Declaration
public LooselyLinkedListNode<T> First { get; }
Property Value
Type Description
LooselyLinkedListNode<T>
| Edit this page View Source

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool
| Edit this page View Source

Last

Gets the last node

Declaration
public LooselyLinkedListNode<T> Last { get; }
Property Value
Type Description
LooselyLinkedListNode<T>
| Edit this page View Source

Nodes

Gets all nodes

Declaration
public IEnumerable<LooselyLinkedListNode<T>> Nodes { get; }
Property Value
Type Description
IEnumerable<LooselyLinkedListNode<T>>

Methods

| Edit this page View Source

Add(LooselyLinkedListNode<T>)

Adds the provided node

Declaration
public void Add(LooselyLinkedListNode<T> newNode)
Parameters
Type Name Description
LooselyLinkedListNode<T> newNode

The node to add

| Edit this page View Source

Add(T)

Declaration
public void Add(T item)
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
Type Name Description
LooselyLinkedListNode<T> node

The node after which the new node should be added

LooselyLinkedListNode<T> newNode

The new node

Exceptions
Type Condition
ArgumentNullException

Thrown if either is null

| 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
Type Name Description
LooselyLinkedListNode<T> newNode
| Edit this page View Source

Clear()

Declaration
public void Clear()
| Edit this page View Source

Contains(T)

Declaration
public bool Contains(T item)
Parameters
Type Name Description
T item
Returns
Type Description
bool
| 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
Type Name Description
LooselyLinkedListNode<T> node
| Edit this page View Source

GetEnumerator()

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>
| Edit this page View Source

Remove(T)

Declaration
public bool Remove(T item)
Parameters
Type Name Description
T item
Returns
Type Description
bool

Implements

ICollection<T>
IEnumerable<T>
IEnumerable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX