TYPE

LinkedList<T>

Doubly linked sequence. Insertion near a known node does not require shifting an array; finding that node may require traversal.

Formal Syntax & Structure

csharp syntaxcsharp
new LinkedList<T>()

Working Example

Example Snippetcsharp
using System.Collections.Generic;var names = new LinkedList<string>();var first = names.AddFirst("A");names.AddAfter(first, "B");
C# & .NET Reference