mono/mono — pull request #512 by martinpotter (2012-11-27 16:26:32+00:00)
Title: Making the behavior of substring versions of string.CompareOrdinal and s...

...tring.CompareOrdinalCaseInsensitive match Microsoft's implementation.

The MSDN documentation states "Because CompareOrdinal is a static method, strA and strB can be null. If both values are null, the method returns 0 (zero), which indicates that strA and strB are equal. If only one of the values is null, the method considers the non-null value to be greater." Previously, CompareOrdinal and CompareOrdinalCaseInsensitive would throw a NullReferenceException if strA or strB was null.