ReSharper Web Help

The Copy Type refactoring allows users to copy a class, interface, struct, or enum from one namespace to another, or 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.
    The Copy Type dialog box opens:
  3. In the Name box, specify the new name of the type copy.
  4. In the Namespace box, specify the namespace where the copy of the type is to be created.
  5. Click Next. If no conflicts are discovered, the copy of the type is created immediately, otherwise, resolve conflicts .

See Also