title: How do I convert Foreach statement into linq expression?
body: <p>how to convert below foreach into linq expression?</p>
  
  <pre><code>var list = new List&lt;Book&gt;();
  
  foreach (var id in ids)
  {
      list.Add(new Book{Id=id});
  }
  </code></pre>