title: C# LINQ select from where value is not contained in array / list
body: <p>New to LINQ and not sure on the correct syntax for what I want to do.</p>
  <p>I have a &quot;Blocklist&quot;, an array or list (could be either) of bad codes that I don't want put into this new &quot;keys&quot; list that I am making</p>
  <p>currently...</p>
  <pre><code>var keys = (from s in context.Keys
              where s.Code != &quot;BadCode1&quot;
              where s.Code != &quot;BadCode2&quot;
              where s.Code != &quot;BadCode3&quot;
              where s.Code != &quot;BadCode4&quot;
              where s.Code != &quot;BadCode5&quot;
              orderby s.Name
              select s).ToList&lt;Keys&gt;();
  </code></pre>
  <p>how would I trim it down to one line and have it read from the &quot;blocklist&quot; ?
  so more like...</p>
  <pre><code>var keys = (from s in context.Keys
              where s.Code != ANY OF THE VALUES FROM &quot;BLOCKLIST&quot;
              orderby s.Name
              select s).ToList&lt;Keys&gt;();
  </code></pre>