ReSharper
 
2024.3
Get ReSharper

Generate Properties

Last modified: 25 September 2024

ReSharper will help you generate properties for all fields that you want to expose.

In the example below, this command is used to generate properties for _radius and _center fields.

This command generates properties leaving the original fields intact. If necessary, you can convert the generated properties to auto-implemented properties by pressing AltEnter on any of the properties:

'Convert to auto-property' quick-fix

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.