ReSharper Web Help

The Move Instance Method refactoring allows you to move an instance method from one type to one of method parameter types.

To move an instance method
  1. Place the caret at the name of the method to be moved.
  2. Do one of the following:
    • On the main menu, choose ReSharper| Refactor | Move Instance Method.
    • Choose Refactor | Move Instance Method on the context menu.
    The Move Instance Method dialog box opens.
  3. Select a pair of elements: type where to move and variable which should be used as source point for the refactoring.
  4. Specify visibility. Click Next.
  5. If no conflicts are found, ReSharper performs the refactoring immediately. Otherwise, resolve conflicts.


This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available


The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.

See Also