I have a dictionary declared as follows:
public:
static Dictionary
so by using for each loop key and values are loaded into that (which is written by someone else). Now i need by using the same for each loop i am able to access "key" of the Dictionary alone, please help me out how to access "value" of the Dictionary.
Thanks & Regards,
P.Karthik

VulpesRank #55 · 29.2K reputationPosted Aug 18, 2011, 4:26 AM EDT
Karthik AgarwalRank #2,270 · 620 reputationPosted Aug 18, 2011, 4:33 AM EDT
No this doesn't give the exact values of the key. This might work for the Dictionary which contains two Strings but my Dictionary contains one string and one list so if i use kvp.Value[0] and[1] it is giving the values of the 1st key by default based on the index provided.
If you can tell me a way where i can get whole list of a key. That is also fine. I can fetch data from that.
Thanks & Regards,
P.Karthik
VulpesRank #55 · 29.2K reputationPosted Aug 18, 2011, 4:55 AM EDT
for each(KeyValuePair
{
List
for each(String ^ value in values)
{
Console::Write("{0} ", value);
}
Console::WriteLine();
}