Move instance method

Hello,

I can't find the "Move Instance Method" under "Refactor this" menu.

I'm using Resharper Ultimate 2017.1.3 with Visual studio 2015 & 2017

Thank you in advance for your help.

1
1 comment
Official comment

Hello Hossam!

 

Thank you for contacting us.

Please refer to "Move instance method" help page - https://www.jetbrains.com/help/resharper/Refactorings__Move__Instance_Method_to_Another_Type.html

Is says that "The list of potential target types includes types of the method parameters and types of fields in the current type."

There's no method parameters used in the screenshot you provided and presumably no fields of potential target type, so Move refactoring cannot be applied in the specified case

Thank you.

Please sign in to leave a comment.