Skip to content

Instantly share code, notes, and snippets.

@sudipto80
Created March 24, 2016 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudipto80/f470aa9b404e17a7e67a to your computer and use it in GitHub Desktop.
Save sudipto80/f470aa9b404e17a7e67a to your computer and use it in GitHub Desktop.
Finding duplicates the wrong way
var duplicates = plugIns.GroupBy(i => i.ID)
.Where(g => g.Count() > 1)
.ToDictionary(g => g.Key, g => g.Select(a => a.Description).ToList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment