title: Using LINQ in Parallel.Foreach
body: <p>I have following normal <strong>foreach</strong> using LINQ query, How can i transform it using <strong>Parallel.Foreach</strong></p>
  
  <pre><code>foreach (var i in media.Where(x =&gt; x is Video)
  {
      this.Update(i);
  }
  </code></pre>
  
  <p>How can i do it like</p>
  
  <pre><code>Parallel.ForEach(media,i =&gt;
  {
      //LINQ
  });
  </code></pre>