I have a situation Where I need to remove the duplicates from the list. This is coming because I have combined some lists togather.
List<Guid> CompleteListOfPeople = firstListGuids.Union(secondListGuids).ToList().Union(thirdListGuids).ToList();
What should I do to filer the list of Guids so that I get only unique Guids?
Thank you
Unionshould already give you unique values. Note that you don’t need the intermediateToList()call. Just: