Maybe this
var duplicates = string.Join(",",People.GroupBy(s => s).Where(x => x.Count() > 1).Select(y => y.Key).ToArray());
jdweng
No comments:
Post a Comment