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

[deprecated] RCS1109: Call 'Enumerable.Cast' instead of 'Enumerable.Select'

Property Value
Id RCS1109
Category Simplification
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -


Code with Diagnostic

IEnumerable<object> x = items.Select(f => (object)f); // RCS1109

Code with Fix

IEnumerable<object> x = items.Cast<object>();

See Also

(Generated with DotMarkdown)