VB.Net Collection Objects

Common Collection Object Types

Dictionary<TKey, TValue>

aka Hashtable - a collection of key/value pairs

List

List is the basic type of list. You can add/remove.
aka Array
aka ArrayList

1
2
3
4
5
6
7
8
9
10
11
Example from https://www.dotnetperls.com/list-vbnet

Module Module1
Sub Main()
Dim list As New List(Of Integer)
list.Add(2)
list.Add(3)
list.Add(5)
list.Add(7)
End Sub
End Module

Read in a collection of SparseColObjects

    dim aColList as New List(Of SparseDefCol)
    Dim nextColId as String = abo.firstcolid
    While nextColId <> ""
        dim aCol as SparseDefCol _
            = sparsedefcol.GetOneByid(nextcolid)

        aColList.Add (acol)

        nextColId=aCol.NextColId 
    End While
````		

### Queue<T>

### Stack<T>

### LinkedList<T>

### ObservableCollection<T>

### SortedList<TKey,TValue>

### HasSet<T>

### SortedSet<T>


## References 

* https://docs.microsoft.com/en-us/dotnet/standard/collections/index 
* https://www.dotnetperls.com/list-vbnet