Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This refactoring applies to:
- C#
What: Make a member static.
When: You want a non-static member to be static.
Why: Static members improve readability: knowing that specific code is isolated makes it easier to understand, reread, and reuse.
How-to
Place your caret on the member name.
Press Ctrl+. (period) to trigger the Quick Actions and Refactorings menu.
Select Make static.