To convert an iterator to a method
  1. Place the caret at the name of an iterator in the editor, in the File Structure window, in Class View or in Object Browser.
  2. Do one of the following:
    • On the main menu, choose ReSharper | Refactor | Convert | Iterator to Method.
    • Press Ctrl+Shift+R and click Convert Iterator to Method.