I have a List>. I would like to convert it into a List where each int is unique. I was wondering if anyone had a
List>
List
How about:
HashSet set = new HashSet(); foreach (List list in listOfLists) { set.UnionWith(list); } return set.ToList();