Skip to content

Instantly share code, notes, and snippets.

@scichelli
Created February 21, 2012 16:21
Show Gist options
  • Save scichelli/1877234 to your computer and use it in GitHub Desktop.
Save scichelli/1877234 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