as the title says how can i do this ? Let's say i have the following List<List<int>>
:
var List = new List<List<int>>();
var temp1 = new List<int>();
var temp2 = new List<int>();
var temp3 = new List<int>();
temp1.Add(0);
temp1.Add(1);
temp1.Add(2);
temp2.Add(3);
temp2.Add(4);
temp2.Add(5);
temp3.Add(0);
temp3.Add(1);
temp3.Add(2);
List.Add(temp1);
List.Add(temp2);
List.Add(temp3);
now list temp1
and temp3
are duplicates. How can i remove just one of them ? Not both List.Distinct();
wont work for me.
EDIT Also if multiple list's has length of 0 they should also be removed