KEMBAR78
Implement IAlternateEqualityComparer<ReadOnlySpan<char>, string> on EqualityComparer<string>.Default · Issue #102906 · dotnet/runtime · GitHub
Skip to content

Implement IAlternateEqualityComparer<ReadOnlySpan<char>, string> on EqualityComparer<string>.Default #102906

@stephentoub

Description

@stephentoub

As part of #27229, we want all the relevant comparers for strings to implement IAlternateEqualityComparer<ReadOnlySpan<char>, string>. The initial implementation does so for all of the StringComparer singletons, but not for EqualityComparer<string>.Default. This means that the alternate lookup support for spans on dictionaries/sets will only work when those collections are explicitly given a supported comparer. This issue tracks implementing the interface on the default comparer for string, as well.

Metadata

Metadata

Assignees

Labels

area-System.Runtimein-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions