Using LINQ Distinct: With an Example on ASP.NET MVC SelectListItem
One of the things that might be surprising in the LINQ Distinct standard query operator is that it doesn’t automatically work properly on custom classes. There are reasons for this, which I’ll explain shortly. The example I’ll use in this post focuses on ...