MCS UK Solution Development Team

The blog of the UK Solutions Development Team of Microsoft Consulting Services.

Browse by Tags

Tagged Content List
  • Blog Post: IEnumerable Distinct through a Func extension method

    In a recent posting, available here , I tried to explain why the IEnumerable Distinct() method employs an IEqualityComparer implementation. In this posting I will provide a simple extension to IEnumerable for the Distinct() method that allows one to use a Func to determine a property on which the Distinct...
  • Blog Post: LINQ Distinct and IEqualityComparer Implementation

    As you may know when working with LINQ there is a method that allows one to return distinct elements from a sequence. Two prototypes are supported: Distinct<TSource>(IEqualityComparer<TSource>) Distinct() Unlike most sequence operations that take some form of a Func parameter, the...
Page 1 of 1 (2 items)