TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C# Coding Standard

12@103Checked automatically with code checker

Synopsis:Consider using Any() to determine whether an IEnumerable is empty

In many cases using Any() is more efficient than Count(). With Count() you risk that iterating over the entire collection has a significant impact.

Literature References:
MS Design numerable.Count