/ Published in: VB.NET
URL: http://codefinds.blogspot.com/2008/12/use-generic-dictionary.html
Expand |
Embed | Plain Text
' Declaring a generic dictionary; adding values. ' Where the Key and Value (String, String) can be any object. xGD.Add("key1", "value1") ' Getting access to a value: Dim value as String = xGD("key1") ' Looping: For Each xKVP As Generic.KeyValuePair(Of String, String) In xGD Consoe.Writeline(xKVP.Key & ", " & xKVP.Value) Next
You need to login to post a comment.
