SyntaxFix
Write A Post
Hire A Developer
Questions
Using straight Linq, with the Distinct() extension:
Distinct()
var idList = (from x in yourList select x.ID).Distinct();