public static int CompareInvariant(this string left, string right, bool ignoreCase);
Shortcut for invariant String.Compare(string strA, string strB)
Parameters
| Name | Type | Description |
| left | string | Left-hand string to compare. |
| right | string | Right-hand string to compare. |
| ignoreCase | bool | True if case should not be considered in comparison. |
Returns
Type: int
A 32-bit signed integer indicating the lexical relationship between the two comparands. Value Condition Less than zero left is less than right. Zero left equals right. Greater than zero left is greater than right.