title: Use Lambda expression with multiple compare-values
body: <p>id like to compare a certain property from a set of objects with an array, something like this:</p>
  
  <pre><code>List&lt;Entity.Error&gt; errorList = new List&lt;Entity.Error&gt;();
  Guid[] guids = GetArrayOfGuids();
  errorList.AddRange(Entity.ErrorCollection.errorCollection.Where(x =&gt; x.id == guids));
  </code></pre>
  
  <p>I hope this is possible without using:</p>
  
  <pre><code>foreach(Guid g in guids)
      errorList.AddRange(Entity.ErrorCollection.errorCollection.Where(x =&gt; x.id == g));
  </code></pre>
  
  <p>so if you have an idea, please let me know.</p>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>This works:</p>
  
  <pre><code>var query = from error in Entity.ErrorCollection.errorCollection
                      join guid in GetArrayOfGuids()
                      on error.product.id equals guid1
                      select error;
          errorList.AddRange(query);
  </code></pre>
  
  <p>But error.products.version is a List of Entity.Version which I also want to query by another Guid[]. is this possible in one join, oder do i need to do a second join on "var query"?</p>