I\'m trying to use Linq to return a list of ids given a list of objects where the id is a property. I\'d like to be able to do this without looping through each object and p
Using straight Linq, with the Distinct() extension:
Distinct()
var idList = (from x in yourList select x.ID).Distinct();