Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Line 911:
[[Visual Basic .NET]] relies on the collection classes provided by [[.NET Framework]]:
 
<source lang="vbvbnet">
Dim phoneBook As New System.Collections.Generic.Dictionary(Of String, String)
phoneBook("Sally Smart") = "555-9999"
Line 917:
phoneBook("J. Random Hacker") = "553-1337"
For Each entry As KeyValuePair(Of String, String) In phoneBook
MsgBoxMessageBox.Show(entry.Key & " = " & entry.Value)
Next
</source>