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?
Please sign in to leave a comment.
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!"