This documentation is archived and is not being maintained.

Refactoring Classes and Types 

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.


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.

In This Section

How to: Override Type Members

Explains how to override type members with the Class Designer.

How to: Rename Types and Type Members

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

How to: Reorder Parameters (C# Only)

Describes how to reorder parameters using the Class Designer.

How to: Implement an Interface

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

How to: Implement an Abstract Class

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

How to: Move a Type Member from one Type to Another

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

How to: Extract to Interface (C# Only)

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

Related Sections