Method CICompare
CICompare(String, String)
Performs a case insensitive comparison of two strings, returning an integer indicating if they match, or one is less than/greater than the other.
Declaration
public static int CICompare(this string value, string otherValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The first value to compare. |
System.String | otherValue | The second value to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Zero if the values are the same, 1 if |
Remarks
This is equivalent to calling System.String.Compare(System.String,System.String,System.StringComparison) with the System.StringComparison.CurrentCultureIgnoreCase value.