LINQ in Action roller

LINQ - Distinct operator on Projections

Hi, Trying something like dim lst = From c in SomeCollectionWithDuplicates _ Select New CustomerInfo with {.ID = c.CustomerID, .Name = c.CompanyName} _ Distinct The problem is that I get duplicates. I overrode Equals on CustomerInfo but it doesn't seem to work. How do I do it? Thanks, Cosmin Read More...
Published Tuesday, October 28, 2008 2:35 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication