Class LinkedListIndex<TValue>
Creates an index accessor for a linked lists.
Inheritance
System.Object
LinkedListIndex<TValue>
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class LinkedListIndex<TValue>
where TValue : class
Type Parameters
Name | Description |
---|---|
TValue | ValueType of the linked list. |
Constructors
LinkedListIndex(LinkedList<TValue>)
Initializes a new LinkedListIndex.
Declaration
public LinkedListIndex(LinkedList<TValue> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.LinkedList<TValue> | list | The list to index. |
Methods
GetAt(Int32)
Gets the value at the specified index.
Declaration
public TValue GetAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index to access. |
Returns
Type | Description |
---|---|
TValue | The value. |