title: Generic List, items counting with conditional-statement
body: <p>I have a Generic List. it has a ListfilesToProcess.Count property which returns total number of items, but I want to count certain number of items in list with conditional-statement.</p>
  
  <p>I am doing it like this:</p>
  
  <pre><code>int c = 0;
  foreach (FilesToProcessDataModels item in ListfilesToProcess)
              {
                  if (item.IsChecked == true)
                      c++;
              }
  </code></pre>
  
  <p>Is there any shorter way like <em>int c = ListfilesToProcess.count(item => item.IsChecked == true);</em></p>