Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 604 Bytes

RCS1112.md

File metadata and controls

28 lines (18 loc) · 604 Bytes

RCS1112: Combine 'Enumerable.Where' method chain

Property Value
Id RCS1112
Category Simplification
Severity Info

Example

Code with Diagnostic

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

Code with Fix

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

See Also

(Generated with DotMarkdown)