Extract method to a method in a different class and possibly a different project?

I have code in a method. I would like to extract some code in that method and move it to a new method in a different class and possibly another project and call that code. Have option to create new class or have a static method.

Is this possible with Resharper?

1 comment
Comment actions Permalink

Hello
     Could you please clarify what you're trying to achieve? If you'd like to extract some code into a new method, so that the new method is located in some other type, you can first extract method (using Extract Method refactoring) and then move that method to destination type (using Move refactoring). Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.