SyntaxFix
Write A Post
Hire A Developer
Questions
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; }