JetBrains Rider
 
Get JetBrains Rider
You are viewing the documentation for an earlier version of JetBrains Rider.

Convert Static to Extension Method refactoring

Last modified: 01 July 2022

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: