Skip to main content

RCS1112: Combine 'Enumerable.Where' method chain

Properties​

PropertyValue
Default SeverityInfo
Minimum language version-

Examples​

Example #1​

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

Applies to​