Refactoring Classes and Types (Class Designer)

When you refactor code, you change its internal structure, specifically, the design of its objects, to make it more comprehensible, maintainable, and efficient without changing its observable behavior. You can use Class Designer and the Class Details window to help refactor code.

Note

The files of a project might be read-only because the project is under source-code control and is not checked out; it is a referenced project; or its files are marked as read-only on disk. When you work in a project in one of these states, you will be presented with various ways to save your work depending on the project’s state. This applies to refactoring code as well as to code that you change in another way, such as directly editing it. For more information, see Display of Read-Only Information (Class Designer).

In This Section

How to: Override Type Members (Class Designer)

Explains how to override type members with the Class Designer.

How to: Rename Types and Type Members (Class Designer)

Describes how to rename a type or member in the Class Designer.

How to: Reorder Parameters (Class Designer C# only)

Describes how to reorder parameters using the Class Designer.

How to: Implement an Interface (Class Designer)

Explains how to use the Class Designer to implement an interface.

How to: Implement an Abstract Class (Class Designer)

Explains how to use the Class Designer to implement an Abstract Class.

How to: Move a Type Member from one Type to Another (Class Designer)

Describes how to move a member from one type to another.

How to: Extract to Interface (Class Designer C# only)

Explains how to extract one or more public members from a type to an interface.

Viewing Types and Relationships (Class Designer)

Designing Classes and Types (Class Designer)