ReSharper Web Help

This refactoring is available in: ReSharper Full Edition and ReSharper C# Edition

This dialogless refactoring converts an extension method to a static method in the same class.

The reverse functionality is available with the Convert Static to Extension Method refactoring.

To convert an extension method to a static method
  1. Position the caret at the name of an extension method, or select it in File Structure.
  2. Choose ReSharper | Refactor | Convert | Extension Method to Plain Static.
  3. The refactoring will be carried out without requiring you to specify any further options.

For a sample of modifications in method signature and calls caused by using the refactoring, see Convert Static to Extension Method .

See Also

Procedures