Renaming Code

Renaming code elements is the most common refactoring operation. In fact, while Rename is part of the refactoring support in the C# editor, a similar rename feature exists in the VB editor. Database projects also now include the ability to reliably rename elements in your database schema. Here we stick to our coverage of the C# refactoring tools. However, both the VB and database rename operations work in a similar fashion.

Most developers do not typically wait until the code base is operational and say to themselves, “Okay, now I will go back and rename items for clarity.” Although this does happen on some teams as part of a set code refactoring step, the more likely scenario is that as you build your application, you consistently ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.