title: LINQ: Get all selected values of a CheckBoxList using a Lambda expression
body: <p>Consider a scenario where you want to retrieve a <code>List</code> or <code>IEnumerable</code> of the values of all the selected checkboxes in an <code>&lt;asp:CheckBoxList&gt;</code>.</p>
  
  <p>Here's the current implementation:</p>
  
  <pre><code>IEnumerable&lt;int&gt; allChecked = (from item in chkBoxList.Items.Cast&lt;ListItem&gt;() 
                                 where item.Selected 
                                 select int.Parse(item.Value));
  </code></pre>
  
  <p><strong>Question</strong>: How would you improve this LINQ query using a lambda expression or lambda syntax?</p>