LINQ Unique Count Property

data.Select(x => x.Id).Distinct().Count();
loonix