You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theStringComparer
singletons, but not forEqualityComparer<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.The text was updated successfully, but these errors were encountered: