title: search List<string> for string .StartsWith()
body: <p>I have a </p>
  
  <pre><code>List&lt;string&gt;
  </code></pre>
  
  <p>with 1500 strings. I am now using the following code to pull out only string that start with the string prefixText.</p>
  
  <pre><code>foreach(string a in &lt;MYLIST&gt;)
  {            
      if(a.StartsWith(prefixText, true, null))
      {
          newlist.Add(a);                   
      }            
  }
  </code></pre>
  
  <p>This is pretty fast, but I'm looking for google fast.  Now my question is if I arrange the List in alphabetical order, then compare char by char can I make this faster?  Or any other suggestions on making this faster?</p>