Hello.
Assumed I defined my dict as below.
Dictionary<list<int>, list<string>> d = new Dictionary<List<int>, list<string>>()
How can I retrieve the dict key and value rapidly.
[update]
I want to get the Key - List content. I tried a simple way as below
List<int> KeysList= new List<int>(d.Keys);
But it doesn't work at the complex key on my case.
Can I only use the KeyValuePair
as below?
foreach (KeyValuePair<List<int>, List<string>> pair in d)
{
KeysList= new List<int>(pair.Key);
}