Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
This refactoring applies to:
What: Inline method refactoring.
When: You want to replace usages of a static, instance, and extension method within a single statement body with an option to remove the original method declaration.
Why: This refactoring will provide a more clear syntax.
Place your caret on the usage of the method.
Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
Select from one of the following options:
<QualifiedMethodName>to remove the inline method declaration:
Select Inline and keep
<QualifiedMethodName>to preserve the original method declaration:
Submit and view feedback for