Make member static
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.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for