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); }
d.keysDictionary<int, string>? That'd make the last lineList<int> KeysList = d.Keys;.List<int>as theKeysList(assumed there are one Key collected some items of List<int> and one value collected some items of List<string>){1}, {1,2,3}, {20, 30, 1, 1}), and an example of the output you're expecting?