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

[deprecated] RCS1082: Use 'Count/Length' property instead of 'Count' method

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

Example

Code with Diagnostic

if (list.Count() == 1) // RCS1082
{
}

Code with Fix

if (list.Count == 1)
{
}

See Also

(Generated with DotMarkdown)