Summary
Shows the position two strings start to differ. Comparison
starts at the start index.
Syntax
public static int FindMismatchPosition(string expected, string actual, int istart, bool ignoreCase)
Parameters
Name |
Type |
Description |
expected |
string |
The expected string |
actual |
string |
The actual string |
istart |
int |
The index in the strings at which comparison should start |
ignoreCase |
bool |
Boolean indicating whether case should be ignored |
Return Value
Type |
Description |
int |
-1 if no mismatch found, or the index where mismatch found |