find duplicate and count of duplicates in string c# 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);