To make a method or property non-static
Position the caret at the name of a static method or property in the editor:
ReSharper | Refactor | Make Method Non-Staticor ReSharper | Refactor | Make Property Non-Static. The Make Method Non-Staticwizard will display:
- Select an instance parameter from the list. If required, the instance parameter will be substituted with this in the method/property body.
Select visibility for the new instance method/property in the
Next. If no conflicts are found, the refactoring is performed immediately:
Otherwise, resolve conflicts.