title: Fastest way to create a list of unique strings from within a loop?
body: <p>I have a set of strings (~80 000) I can only access sequentially by the hits.Doc(int).Get("fieldName") method.</p>
  
  <pre><code>List&lt;string&gt; idStrings = new List&lt;string&gt;();
  int count = hits.Length();
  for (int i = 0; i &lt; count; i++)
  {
      string idString = hits.Doc(i).Get("id");
      if (!idStrings.Contains(idString))
          idStrings.Add(idString);
  }
  </code></pre>
  
  <p>The strings will later on have to be int.TryParse()'d.
  I think there should be a faster way to do this. Any suggestions?</p>