Closed Therzok closed 4 years ago
Possible fix:
class NSString : IComparer<T>
{
public int CompareTo (NSString other)
{
return (int)Compare(other);
}
}
Possibly applies to NSAttributedString/NSMutableAttributedString.
I've opened a PR for this. NSAttributedString and NSMutableAttributedString don't support comparison.
Steps to Reproduce
Expected Behavior
NSString should implement IComparable and the result output should be:
Actual Behavior
Environment
Xamarin.Mac Version: 5.6.0.2 (Visual Studio Enterprise) Hash: 040682909 Branch: d16-0 Build date: 2018-12-14 06:23:20-0500
Example Project (If Possible)
See code above, not sure it needs a project.
Workaround
It's possible to pass a custom IComparer, but should not be needed.