title: LINQ: Remove items from IQueryable
body: <p>I want to remove an item from the result of a LINQ query before using it to databind.  What is the proper way to do this?</p>
  
  <p>The foreach in my illustration is the topic of my question. Illustration:</p>
  
  <pre><code>var obj =
      (from a in dc.Activities
      where a.Referrer != null
      &amp;&amp; a.Referrer.Trim().Length &gt; 12
      &amp;&amp; a.Session.IP.NumProblems == 0
      &amp;&amp; (a.Session.UID == null || a.Session.UID &lt; 1 || a.Session.User.BanLevel &lt; 1)
      select a)
      .Take(int.Parse(ConfigurationManager.AppSettings["RecentItemQty"]));
  foreach (Activity act in obj)
      if (isDomainBlacklisted(ref dc, act.Referrer))
          obj.Remove(act);
  </code></pre>