Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C# 4.0

A Generic IEqualityComparer for Linq Distinct()

Rate me:
Please Sign up or sign in to vote.
4.83/5 (18 votes)
15 Jul 2010CPOL3 min read 189.3K   714   32  
An implementation of IEqualityComparer that can be used to compare any class by one of its properties

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Top Side Software
United States United States
Seth Dingwell is the Owner and Principal Architect of Top Side Software in Charlotte, NC.

One of Seth's passions is building cutting edge software with C# and whatever the latest and greatest technologies are.

When he's not developing software, Seth enjoys hiking, building wooden boats, and spending time with his wife Andrea and daughters Sienna and Annabelle.

Comments and Discussions