Comparers
Comparers copied to clipboard
The last comparison library you'll ever need!
It may be better (although possibly less efficient) to split up the current situation more: 1. Define a splitter that parses a string into `(ReadOnlyMemory, IsNumeric)` splits. 2. For sequences...
Split from #23 Light-up usage of `CompareTo` and `Equals` for spans of chars to make natural string comparisons allocation-free on .NET Core 2.1+. Light-up `GetHashCode` for spans of chars to...
xxHash (https://cyan4973.github.io/xxHash/) has been [adopted by the .NET runtime](https://github.com/dotnet/runtime/blob/8a83488465f101e3ec2620cb1eb2a8c3d7cc1a1c/src/libraries/System.Private.CoreLib/src/System/HashCode.cs) and looks more distributed than FNV.
How about adding special equality comparers for `float` and `double` types, which allow you to specify the allowed tolerance for difference? As far as I know there are none in...
It would be really nice if we could have a method in both the ComparerBuilder and EqualityComparerBuilder classes to allow a member to be compared using delegates for both the...
I just tried using this library on a little stub of a class: ``` internal sealed class PortCategory(string name) : ComparableBase, IPortCategory { static PortCategory() { DefaultComparer = ComparerBuilder.For() .OrderBy(x...