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.