title: Searching an ArrayList
body: <p>I'm working on some legacy code, so cannot use Generic List here. I have an ArrayList being returned from a data layer method. Each item in the last consists of an ID and a Description field. I want to loop through the ArrayList and search for a match on the Description string - any ideas?</p>
  
  <p><strong>Format</strong></p>
  
  <pre><code>ID    DESCRIPTION
  1     SomeValue
  </code></pre>
  
  <p>I know I can do this:</p>
  
  <pre><code>bool found = false; 
  if (arr.IndexOf("SomeValue") &gt;= 0) 
  {
      found = true;    
  }
  </code></pre>
  
  <p>But is there a way to do a string compare for a particular Description value?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Amended version of Seattle Badger's answer:</p>
  
  <pre><code>for (int i = 0; i &lt; arr.Count; i++)
  {
      if (arr[i].ToString() == "SomeValue")
      {
          // Do something
          break;
      }
  }
  </code></pre>