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

Generate Delegating Members

Last modified: 08 March 2021

Code | Generate | Delegating Members

Alt+Insert | Delegating Members

With JetBrains Rider, you can quickly generate members that delegate execution to public members (methods and properties) available through private fields and properties — in other words, publish the desired part of the interface of any private field or property in the containing type.

In the example below, this command is used to generate delegating members for the _center field: