Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 857 Bytes

RCS1112.md

File metadata and controls

31 lines (21 loc) · 857 Bytes

RCS1112: Combine 'Enumerable.Where' method chain

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

Example

Code with Diagnostic

IEnumerable<string> x = items.Where(f => Foo(f)).Where(f => Bar(f)); // RCS1112

Code with Fix

IEnumerable<string> x = items.Where(f => Foo(f) && Bar(f));

See Also

(Generated with DotMarkdown)