ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Generate Delegating Members

Last modified: 26 May 2024

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 more information about other languages, refer to corresponding topics in the Languages and frameworks section.