ReSharper 8.0 Web Help

The Inline Class refactoring allows you to replace a property or a field of a certain type with contents of this type.

To inline a class
  1. Place the caret at the name of a property or a field.
  2. 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:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available


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.