DotLucene 1.4 API Documentation |

# StringHelper.StringDifference Method

Compares two strings, character by character, and returns the first position where the two strings differ from one another.

public static int StringDifference(
string s1,
string s2
);

#### Parameters

s1
  The first string to compare
s2
  The second string to compare

#### Return Value

The first position where the two strings differ.

#### See Also

StringHelper Class | Lucene.Net.Util Namespace