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

[deprecated] RCS1083: Call 'Enumerable.Any' instead of 'Enumerable.Count'

Property Value
Id RCS1083
Category Performance
Default Severity Warning
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

if (enumerable.Count() == 0) // RCS1083
{
}

Code with Fix

if (!enumerable.Any())
{
}

See Also

(Generated with DotMarkdown)