Quelle serait la meilleure façon de regarder dans un string[]pour voir s'il contient un élément. C'était ma première chance. Mais il y a peut-être quelque chose que je néglige. La taille du tableau ne dépassera pas 200 éléments.
bool isStringInArray(string[] strArray, string key)
{
for (int i = 0; i <= strArray.Length - 1; i++)
if (strArray[i] == key)
return true;
return false;
}