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
Enumerate<T>(LinkedListNode<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, LinkedListNode<T> endNode)
Parameters
beginNodeLinkedListNode<T>The starting node (inclusive).
endNodeLinkedListNode<T>Exclusive end node. It can be null.
Returns
- IEnumerable<LinkedListNode<T>>
An enumerable sequence of linked list nodes.
Type Parameters
TThe type of elements in the linked list.