394 {
395 if ((
object)
strA ==
null || (
object)
strB ==
null)
396 {
398 {
399 return 0;
400 }
401 if ((
object)
strA !=
null)
402 {
403 return 1;
404 }
405 return -1;
406 }
408 {
409 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_NegativeCount);
410 }
412 {
414 throw new ArgumentOutOfRangeException(
paramName, SR.ArgumentOutOfRange_Index);
415 }
418 if (num < 0 ||
num2 < 0)
419 {
420 string paramName2 = ((num < 0) ?
"indexA" :
"indexB");
421 throw new ArgumentOutOfRangeException(
paramName2, SR.ArgumentOutOfRange_Index);
422 }
424 {
425 return 0;
426 }
428 }
static int CompareOrdinalHelper(string strA, int indexA, int countA, string strB, int indexB, int countB)