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
VulpesPosted Aug 18, 2011, 8:26 AM
VulpesPosted Aug 18, 2011, 8:55 AM
for each(KeyValuePair
{
List
for each(String ^ value in values)
{
Console::Write("{0} ", value);
}
Console::WriteLine();
}
Karthik AgarwalPosted Aug 18, 2011, 8:33 AM
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