Junior
From PDF
Collections
C# Collections
What is a LinkedList<T> in C#?
LinkedList<T> is a doubly linked list collection in C#. It stores elements as nodes,
where each node contains the data and references to the previous and next nodes.
- Allows efficient insertions and deletions anywhere in the list.
- Does not support indexed access like List<T>.
Example:
LinkedList<int> numbers = new LinkedList<int>();
numbers.AddLast(10);
numbers.AddLast(20);
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png