Dictionary object in VB.Net

Hi,
Dictionary object in .Net is type of data structure which holds the key value of the data. Data-type of Dictionary object is generic we can use any data-type for the key and value. While searching the value for the given key, it directly points to the given key and gets the value so the retrieval of the data is faster. Find the example below.

/* Creating Object for Dictionary class */
Dim dist As Dictionary(Of IntegerString)

/* Adding values into Dictionary object */
dist.Add(1, "C#")
dist.Add(1, "VB")
dist.Add(1, "F#")
dist.Add(1, "J#")

/*  Retriving the value from the Dictionary object by passing Key
 *  Here i am passing 2 as a key to retrive its value  */

Dim FileName As String
FileName = dist(2)


Shylander.P