title: To convert foreach to linq
body: <p>How to convert the following <code>c# foreach</code> to <code>linq</code> code ?</p>
  
  <pre><code>var structure = "names structure";
  var names = "name1, name2, name3";
  foreach (var name in namesList)
  {
       BuildPage(name, structure, names);
  }
  </code></pre>