Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 806 Bytes

RCS1219: Call 'Enumerable.Skip' and 'Enumerable.Any' instead of 'Enumerable.Count'

Property Value
Id RCS1219
Category Performance
Default Severity Info
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer -


Code with Diagnostic

if (enumerable.Count() > x) // RCS1219

Code with Fix

if (enumerable.Skip(x).Any())

See Also

(Generated with DotMarkdown)