How to declare natural ordering by overriding the comparison operators in C# .NET
May 15, 2015 1 Comment
In this post we saw one way to declare natural ordering for a custom class by implementing the generic IComparable of T interface. In this post we’ll look at how to achieve the same by overriding the 4 comparison operators:
< > <= >=