You cannot directly overload the operator> = and <=, but you can achieve the same result by overloading> and == separately.
Your code seems right to me, except that you skip overloading for ==. C>
I seem to be wrong, but you can always get back to thinking. I think that if you do some digging and hack, you can make it work with reflection to expand the class, since reflection allows you to add functions or exchange function bodies at runtime.
Whether this is appropriate and good practice, I doubt it. There is a reason the class is sealed. Doing what I mentioned can lead to undefined behavior in some cases due to some assumptions that the .net structure makes in strings. The chances are great that the row class will collapse internally.
Henri
source share