Skip to content

What is IAlternateEqualityComparer? #104423

Answered by En3Tho
TonyValenti asked this question in Q&A
Discussion options

You must be logged in to vote

@TonyValenti Basically an interface in addition to IEqualityComparer that says "hey, you've got some data of type X there and I can compare it with data of type Y.

With it you can look up values in string based Dictionaries using spans for example. I believe this was one of the main motivations for it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stephentoub
Comment options

@TonyValenti
Comment options

@stephentoub
Comment options

Answer selected by stephentoub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants