4 ms·
For the record, T needs to implement IComparable<T>. I think there are special rules for anonymous types for convenience. And do bear in mind that C# supports
by moomin 14y ago
For the record, T needs to implement IComparable<T>. I think there are special rules for anonymous types for convenience.
And do bear in mind that C# supports both idioms. So you can handle hard cases any way you want.