O'Reilly logo

Refactoring with Microsoft Visual Studio 2010 by Peter Ritchie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simple refactoring

Simple refactorings are often supported by tools IDEs, IDE add-ons, or stand-alone tools. Many simple refactorings have been done by programmers since they started programming.

A simple refactoring is generally a refactoring that can occur conceptually in one step usually a change to a single artefact and doesn’t involve a change in program flow. The following are examples of simple refactorings that we'll look at in more detail:

  • Renaming a variable
  • Extracting a method
  • Renaming a method
  • Encapsulating a field
  • Extracting a interface
  • Reordering parameters

Renaming a variable, is a simple refactoring that has a very narrow scope generally limited to a very small piece of code. Renaming a variable is often done manually because of its ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required