Each pair in the dictionary is an instance of KeyValuePair
with the same type parameters as the Dictionary. When you loop through the dictionary with For Each
, each iteration will give you one of the Key-Value Pairs stored in the dictionary.
For Each kvp As KeyValuePair(Of String, String) In currentDictionary
Console.WriteLine("{0}: {1}", kvp.Key, kvp.Value)
Next