ReSharper Web Help

With ReSharper, you can quickly delegate execution to members provided by fields or properties - in other words, publish the whole interface of a field or property, or a part of it, through containing type interface.


You can set up common code generation options on the Code Editing | Members Generation page of ReSharper options.

To generate delegating members
  1. In the editor, position the caret within a type where you would like to generate delegating members.
  2. On the main menu, choose ReSharper | Edit | Generate Code, or press Alt+Insert.
  3. In the Generate pop-up menu, select Delegating members.
  4. In the Generate dialog box that appears, you will see a list of private properties and fields in the current type, and members of types that they belong to. Select some or all of these type members, and ReSharper will generate wrappers in the current type that delegate execution to selected type members.
  5. Click Finish to complete the wizard. For example, if the set of members shown above is selected, ReSharper generates the following wrappers:

See Also


External Links