Class LinkedListExtensions
Provides additional methods for working with LinkedList<T>.
Inherited Members
Namespace: Recore.Collections.Generic
Assembly: Recore.dll
Syntax
public static class LinkedListExtensions
Methods
| Improve this Doc View SourceAdd<T>(LinkedList<T>, T)
Adds a new node with containing the specified value to the end of the LinkedList<T>.
Declaration
public static void Add<T>(this LinkedList<T> linkedList, T item)
Parameters
Type | Name | Description |
---|---|---|
LinkedList<T> | linkedList | |
T | item |
Type Parameters
Name | Description |
---|---|
T |
Remarks
This method is the same as AddLast(T). It is needed to be able to use collection initializer syntax with LinkedList<T>.