title: Is string in array?
body: <p>What would be the best way to look in a <code>string[]</code> to see if it contains a element. This was my first shot at it. But perhaps there is something that I am overlooking. The array size will be no larger than 200 elements.</p>
  
  <pre><code>bool isStringInArray(string[] strArray, string key)
  {
      for (int i = 0; i &lt;= strArray.Length - 1; i++)
          if (strArray[i] == key)
              return true;
      return false;
  }
  </code></pre>