Class LinkedListEnumerator<T>
A linked list enumerator.
Inheritance
System.Object
LinkedListEnumerator<T>
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class LinkedListEnumerator<T> : object where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
LinkedListEnumerator(LinkedListNode<T>)
Initializes a new instance of the LinkedListEnumerator<T> class.
Declaration
public LinkedListEnumerator(LinkedListNode<T> root)
Parameters
Type | Name | Description |
---|---|---|
LinkedListNode<T> | root | The root node. |
Properties
Current
Gets the current value.
Declaration
public T Current { get; }
Property Value
Type | Description |
---|---|
T |
CurrentNode
Gets the current node.
Declaration
public LinkedListNode<T> CurrentNode { get; }
Property Value
Type | Description |
---|---|
LinkedListNode<T> |
Methods
MoveNext()
Moves to the next node.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean |
Reset()
Resets this instance.
Declaration
public void Reset()