title: How do i check if items already exist in the List?
body: <pre><code>for (int i = 0; i &lt; t.Count; i++)
  {
      if (!newText.Contains(t[i]))
      {
          if (firsttime &gt; 1)
          {                           
                  newText.Insert(0, string.Empty);
                  newText.Insert(0, ExtractLinks.FilteredLinks[i]);
                  newText.Insert(0, dateTimeList[i]);
                  newText.Insert(0, t[i]);
          }
          else
          {
              newText.Add(t[i]);
              newText.Add(dateTimeList[i]);
              newText.Add(ExtractLinks.FilteredLinks[i]);
              newText.Add(string.Empty);
          }
      }
  }
  </code></pre>
  
  <p>I'm calling this for loop many times over again through timer tick event.
  In the first time the variable t (<code>List&lt;string&gt;</code>) contain 43 items.
  And the <code>List&lt;string&gt; newText</code> contains 172 items.</p>
  
  <p>I want to check if any item of <code>t</code> already exist in <code>newText</code> not add it again to <code>newText</code>.</p>
  
  <p>The problem I think is that I'm looping over <code>t.Count</code> and I should somehow also loop over <code>newText</code>?
  How can i fix it so the condition will work fine ?</p>