VB.Net - Collections

Common Collection Object Types

Here is a page that describes the different types of collection object managed with VB.Net

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

Example from https://www.dotnetperls.com/list-vbnet

1
2
3
4
5
6
7
8
9
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