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

Generate Delegating Members

Last modified: 21 July 2022

ReSharper | Edit | Generate Code | Delegating Members

Alt+Insert | Delegating Members (ReSharper_GenerateDelegating)

With ReSharper, 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:

This feature is supported in the following languages and technologies:

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by language section.