title: In clause in lambda expression
body: <pre><code>var Charts = chartGroup
       .Descendants("charts")
       .Elements("chart")
       .Where(x =&gt; x.Attribute("id").Value == chartId.ToString())
       .Select(x =&gt; x.Attribute("name").Value).ToList();
  </code></pre>
  
  <p>Here I want to use an "in-clause"" (like the <code>in</code> clause in SQL) for <code>Attribute("id").Value</code> for array of strings:</p>
  
  <p>like:</p>
  
  <pre><code>Where(x =&gt; x.Attribute("id").Value in ("1","2")
  Where(x =&gt; x.Attribute("id").Value` in charIds[]
  </code></pre>
  
  <p>how to achieve this?</p>