C# check many strings quickly

C#
isDifferent = false;
if (stringsWeAreComparingAgainst[x].Length != stringsWeWantToSeeIfMatches[x].Length)
{
    isDifferent = true;
    continue;
}
else
{
    for (int y = 0; y < stringsWeWantToSeeIfMatches[x].Length; y++)
    {
        if (char.ToUpperInvariant(stringsWeWantToSeeIfMatches[x][y]) != char.ToUpperInvariant(stringsWeAreComparingAgainst[x][y]))
        {
            isDifferent = true;
            break;
        }
    }
    if (!isDifferent)
        numberOfMatches += 1;
}

Source

Also in C#: