Easier Complex IComparable Implementations(www.make-awesome.com)
submitted by
schalkvanwyk(1335) 1 year, 3 months ago
I know a lot of us are using the LINQ OrderBy() method to get our data shuffled in the right order, but on occasion I still do like implementing IComparable, especially when defining the default, intrinsic sort scheme for a particular class.
What I don’t like is implementing IComparable when I want to compare on more than one thing.
|category: C#
|Views: 2
tags:
C# another
Everyones tags:
Your Tags: