I am new to C# and have this IDictionary
:
IDictionary<string, IList<string>> myVariable;
I tried this:
foreach(IList<Strintg> str in myVariable.Values){
foreach(String subStr in str){
Console.WriteLine(subStsr);
}
}
This gives me the values well enough, but I want something that will give me the keys and values:
key01
value01
value02
value03
value04
value05
...
key02
value01
value02
value03
value04
value05
...
key03
value01
value02
value03
value04
value05
...
...
How do I go about grabbing each String
key for each IDictionary
entry?