I have a problem with getting only the distinct lists.
So I have :
List<List<int>> combinations = new List<List<int>>();
combinations.Add(new List<int> {1,1});
combinations.Add(new List<int> {1,2});
combinations.Add(new List<int> {1,1}); // Same
combinations.Add(new List<int> {1,3});
What I need to do is to get only :
{1,1}
{1,2}
{1,3}
I tried with this : combinations = combinations.Distinct().ToList();
But it does not work.
Any ideas. Thank you in advance.