How to extract an interface from a class in Visual Studio 2017

The functionality for extracting an interface from a class (C #) seems to change in VS 2017. How can I do this in Visual Studio 2017.

+13
source share
4 answers

Right-click the class name and select "Quick Actions and Refactorings ..." and then select "Extract Interface ..."

Note that you can also click on the class name and click Ctrl + .to bring up the same context menu.

+28
source

With ReSharper installed, right-click the name of the class: Refactor> Extract>Extract Interface...

, Extract Interface... , . , , , .

, .

+4

, , right clicking class, , Quick actions and refactoring.

0

Source: https://habr.com/ru/post/1016619/


All Articles