Table of Contents

Class LinkedListUtil

Namespace
Hi.Common.Collections
Assembly
HiGeom.dll

Utility methods for working with linked lists.

public static class LinkedListUtil
Inheritance
LinkedListUtil
Inherited Members

Methods

EnumerateBack<T>(LinkedListNode<T>)

Enumerates linked list nodes backwards from this node to the head.

public static IEnumerable<LinkedListNode<T>> EnumerateBack<T>(this LinkedListNode<T> beginNode)

Parameters

beginNode LinkedListNode<T>

The node to start tracing backwards from (inclusive).

Returns

IEnumerable<LinkedListNode<T>>

An backward enumerable sequence.

Type Parameters

T

The type of elements in the linked list.

Enumerate<T>(LinkedListNode<T>)

Enumerates linked list nodes from the beginning node to the end node (exclusive).

public static IEnumerable<LinkedListNode<T>> Enumerate<T>(this LinkedListNode<T> beginNode)

Parameters

beginNode LinkedListNode<T>

The starting node (inclusive).

Returns

IEnumerable<LinkedListNode<T>>

An enumerable sequence of linked list nodes.

Type Parameters

T

The type of elements in the linked list.