Skip to content

Instantly share code, notes, and snippets.

@scichelli
Created February 20, 2012 23:09
Show Gist options
  • Save scichelli/1872174 to your computer and use it in GitHub Desktop.
Save scichelli/1872174 to your computer and use it in GitHub Desktop.
LINQ: testing .Count() > 0, which could be replaced with .Any()
bool hasMissedDeadlines = deliverables
.Where(d => d.Deadline < _systemClock.Today)
.Count() > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment