Search code examples
c#visual-studio-2017

How to extract interface from class in Visual Studio 2017


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


Solution

  • 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 press Ctrl+. to bring up the same context menu.