I have the following EF class derived from a database (simplified)
class Product { public string ProductId; public string Product
The Distinct() guarantees that there are no duplicates pair (CategoryId, CategoryName).
- exactly that
Anonymous types 'magically' implement Equals and GetHashcode
Equals
GetHashcode
I assume another error somewhere. Case sensitivity? Mutable classes? Non-comparable fields?