tags:

views:

32

answers:

2

I have already created an interface, and I am in the class that binds to the interface.

If I create a new method in the concret class, is there a shortcut to create the method declaration in the interface?

+3  A: 

Refactor - Pull Members Up:

This refactoring helps you move type members to a superclass or an interface. This operation is useful as a way to generalize behavior. ReSharper analyzes all members in the current class and makes a list of members that you can pull up. Before completing the refactoring, ReSharper also checks for possible conflicts, for example, whether the members that you are trying to move to a superclass will be accessible in the destination type. The reverse functionality is available with 'Push Members Down'.

Anton Gogolev
A: 

The keyboard shortcut for invoking this re-factoring is: Alt+R > R > U

Chris Martin

related questions