KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Several Linq.Enumerable functions take an IEqualityComparer<T> . Is there a convenient wrapper class that adapts a delegate(T,T)=>bool to implement IEqualityComparer<T> ? It's easy enough to write one (if your ignore problems with defining a correct hashcode), but I'd like to know if there is an out-of-the-box solution. Specifically, I want to do set operations on Dictionary s, using only the Keys to define membership (while retaining the values according to different rules).
Tags (comma-separated)
Save Edits
Cancel