The LinkedList(Of T) Collection

Think of the System.Collections.Generic.LinkedList(Of T) collection as a chain in which each ring is an item in the collection that is linked to the others. In other words, an item is linked to the previous one and the next one and points to them. Each item in the collection is considered as a LinkedListNode(Of T), so if you decide to create a LinkedList(Of Person), each Person instance will be represented by a LinkedListNode(Of Person). Table 16.2 summarizes the most common methods and properties for the collection over the ones that you already know (derived from IList(Of T)).

Image

TABLE 16.2 LinkedList Members

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.