Override CompareTo: What to do with null case?
Yes, there is a best practice. Contrary to what the other answers are saying, there is an expected standard, not just a most popular behavior. The correct answer is given in the MSDN documentation for IComparable<T>.CompareTo and IComparable.CompareTo: By definition, any object compares greater than null, and two null references compare equal to each other. … Read more