ReSharper Help  

Copy Type

The Copy Type refactoring allows users to copy a class, interface, struct, or enum from one namespace to another or to clone it within the same namespace.

To copy a type

  1. Select the class, interface, struct, or enum in Class View or Object Browser, or position the caret at its name in the editor.
  2. Do one of the following:
    • On the main menu, click ReSharper | Refactor | Copy Type.
    • Right-click the type, and on the shortcut menu click Refactor | Copy Type.
    • Press Ctrl + Shift + R, and then select Copy Type.
  3. The Copy Type dialog opens.

  4. In the Name text box, specify the new name of the type copy.
  5. In the Namespace text box, specify the namespace where the copy of the type is to be created.
  6. Click Continue.

If no conflicts are found, the copy of the type is created immediately.

See Also

Refactoring Code