707b719 Jun 13, 2018
1 contributor

Users who have contributed to this file

31 lines (21 sloc) 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


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)