JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Convert Static to Extension Method refactoring

Last modified: 23 September 2024

This refactoring helps you convert a static method to an extension method, provided that the static method:

  • Has at least one parameter.

  • Resides in a non-generic, non-nested static class.

Consider the following example: