Distinct em LINQ com tipos anônimos (em VB.NET)
Supondo o @ referenciaList
abaixo contém 2 elementos:
Dim Countries = From c In List _
Select New With { .Country = c.Country, .CountryID = c.CountryID }
o código acima retorna
.Country=Spain .CountryID = 1
.Country=Spain .CountryID = 1
Como posso obter valores distintos? OCountries
query deve conter apenas
.Country=Spain .CountryID = 1