Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 762 Bytes

[deprecated] RCS1120: Use [] instead of calling 'ElementAt'

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

Example

Code with Diagnostic

var x = list.ElementAt(1); // RCS1120

Code with Fix

var x = list[1];

See Also

(Generated with DotMarkdown)