To convert an iterator to a method
Place the caret at the name of an iterator in the editor, in the
File Structurewindow, in Class Viewor in Object Browser.
Do one of the following:
On the main menu, choose
ReSharper | Refactor | Convert | Iterator to Method.
Ctrl+Shift+Rand click Convert Iterator to Method.
- On the main menu, choose