ReSharper Web Help

The Move Type to Outer Scope refactoring helps move an inner type one level up. All corresponding references are automatically updated, even when the inner class uses methods or fields of the outer class.

To move a type to outer scope
  1. Place the caret at the name of an inner type in the editor or select it in the Class View window or in the Object Browser window.
  2. On the ReSharper menu or context menu, choose Refactor | Move, or press F6. The Move drop-down list appears, click Move to Outer Scope. The Move to Outer Scope dialog box opens:

  3. Type a new name for the type in the Outer type name text box or use the existing one.
  4. Select the Search in comments check box to update references to the class in comments.

     Note

    If the Search in comments check box is selected, ReSharper prompts you to rename usages found in comments. Select check boxes next to items that you want to be updated.
  5. Click Next. If no conflicts are found, the refactoring is performed immediately. Otherwise, resolve conflicts.

See Also

Procedures