VB.net program to Create MultiKey dictionary using Tuple

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 1056
'declare a dictionary object that can hold multiple keys
Dim multiKeyDictionary = New Dictionary(Of Tuple(Of String, String), String)()

'add some data to that
'multi-key or composite-key
' the values

Enumerable.Range(1, 10).ToList().ForEach(Function(i) multiKeyDictionary.Add(New Tuple(Of String, String)("100" + i, "900000000" + i), "User" + i))

Comments or Responses

Login to post response