Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
LINQ Things
// for the sake of simplicity:
// all List objects are "items"
// all object references are "object"
// All distinct items in a list
items.GroupBy(x => new {x.fields,,,}).Select(s => s.First()).ToList()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment