C# check many strings quickly
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;
}