According to the documentation of the == operator in MSDN,
==
For predefined value types, the equality operator (==) returns true if th
I wrote the following function looking at the latest msdn. It can easily compare two objects x and y:
x
y
static bool IsLessThan(T x, T y) { return ((IComparable)(x)).CompareTo(y) <= 0; }