I would like to build an array whose rows are keyed with a string. The rows need not have the same number of columns (jagged array) or have values in each column. I want to be able to update columns in an existing row of the array.
I tried using a Dictionary.
Dim ToolUsers as New Dictionary(Of String, Array)
Dim UserData() As String = {"", "", "", "", "", "", "", "")
The Of String
lets me access any particular row based on the String
value but Array
is a reference type and always points to the current values stored in the UserData
array instead of being a value type and storing the array values in the Dictionary
.
I looked at an Array
of Array
s but it does not appear to allow access to existing rows via a key or allow updating the existing values.
Does such a construct exist in VB.net?