Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IAlternateEqualityComparer with FrozenDictionary/Set #103191

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Jun 8, 2024

Closes #27229

Per the discussion in #27229 (comment), for string keys, this only supports an alternate key of ReadOnlySpan<char>... other alternate key types will fail to return a lookup. That's a compromise to not supporting lookups at all.

Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

1 similar comment
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@stephentoub stephentoub merged commit 1ddfd18 into dotnet:main Jun 12, 2024
143 of 146 checks passed
@stephentoub stephentoub deleted the frozenalternatecomparer branch June 12, 2024 19:25
@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add string keyed dictionary ReadOnlySpan<char> lookup support
2 participants