Skip to content

Proposal: Allow Func<T, T, bool> where IEqualityComparer<T> is expected #8583

Discussion options

You must be logged in to vote

That interface has Equals and GetHashCode, does the language have to run around and look for matching signatures? What if there are 2 methods with identical signatures? I think this is a bad idea.
Declaring a class like DelegateEqualityComparer<T> is trivial (and it's probably already available in some general purpose helper Nuget).

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Trarizon
Comment options

@dersia
Comment options

Answer selected by dersia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants