JetBrains Rider
 
2024.3
Get JetBrains Rider

Convert Indexer to Method refactoring

Last modified: 23 September 2024

This refactoring helps you convert one or both accessors of an indexer into methods and update usages of the indexer in the current solution accordingly.

In the example below JetBrains Rider converts both getter and setter accessors of the indexer and updates the usage:

JetBrains Rider refactorings: Convert indexer to method