c# how to check for duplicate objects in a list code example
Example: c# find duplicates in list of strings
var list = new List<string>();
list.GroupBy(n => n).Any(c => c.Count() > 1);
var list = new List<string>();
list.GroupBy(n => n).Any(c => c.Count() > 1);