Closed StephenCleary closed 3 years ago
Also need to consider Utf8StringComparer
.
Splitting out NaturalStringComparer
and Utf8StringComparer
to their own issues.
This issue is now focused on StringComparer
helpers.
6.1.0 has new APIs:
FixedStringComparer
is essentially StringComparer
with properties for each type of string comparer (Ordinal
, InvariantCultureIgnoreCase
, etc) with implementations that do not throw when GetHashCode(null)
is called.
IFullComparer<string>.ToStringComparer()
wraps a string comparer into a StringComparer
-derived type.
Have a
NaturalStringComparer
(and case-insensitive variant). Possibly alsoWithStandardNullHandling
wrappers forStringComparer
instances.