The Inline Class refactoring allows you to replace a property or a field of a certain type with contents of this type.
- Place the caret at the name of a property or a field.
Do one of the following:
- On the main menu, choose ReSharper | Refactor | Inline Class.
- Right-click the type, then click Refactor | Inline Class on the context menu.
- Press Ctrl+Shift+RCtrl+Shift+R, then click Inline Class.
After applying the refactoring the property or the field is replaced with members of its type. All usages of the property or the field are updated accordingly.
This feature is supported in the following languages/technologies:
The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.