brgdotnet
asked on
need help retrieving values from a Dictionary collection
I am maintaining some VB.net code that uses key value pairs. Below is a simple example. What I need to know is how to access some of the values. See the example below.
Three values are added to the collection. So how can I iterate through the collection and retrieve the values "Canada", "Switzerland","Ireland"?
Dim objCollection As New Dictionary(Of String, String())
objCollection.Add("p1",{"C anada","in t","INPUT" ,"4"})
objCollection.Add("p1",{"S witzerland ","int","I NPUT","4"} )
objCollection.Add("p1",{"I reland","i nt","INPUT ","4"})
Three values are added to the collection. So how can I iterate through the collection and retrieve the values "Canada", "Switzerland","Ireland"?
Dim objCollection As New Dictionary(Of String, String())
objCollection.Add("p1",{"C
objCollection.Add("p1",{"S
objCollection.Add("p1",{"I
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER