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)).


TABLE 16.2 LinkedList Members

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.