Permalink
707b719 Jun 14, 2018
1 contributor

Users who have contributed to this file

35 lines (25 sloc) 759 Bytes

RCS1080: Use 'Count/Length' property instead of 'Any' method

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

Example

Code with Diagnostic

if (list.Any()) // RCS1080
{
}

Code with Fix

if (list.Count > 0)
{
}

See Also

(Generated with DotMarkdown)