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

Convert Indexer to Method refactoring

Last modified: 22 September 2022

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