Skip to content

Replace Select and Merge SelectMany

oriches edited this page Mar 24, 2013 · 15 revisions

[Back to Code Analysis & Inspection] (https://github.com/oriches/Resharper.ReactivePlugin/wiki/Code-Analysis-&-Inspection)

Adds a hint highlight to Rx method calls Select & Merge which can be replaced by a single call to SelectMany- it is short hand for calling Select then followed by Merge.

source.Select(selector).Merge();

can be replaced by

source.SelectMany(selector);

Clone this wiki locally