
Refactor Your Code #14
Chapter 2, Master the Editor
|
69
HACK
You can then select the costMultiplier parameter, move it down two spots,
and click OK. You will again then be shown the Preview Changes dialog.
where you can confirm the changes that will be made to any calls to this
method. Click Apply, and the order of the parameters will be changed in the
method signature and any calls to this method.
The Refactor menu is a great addition to Visual Studio and will make it
much easier to refactor code. If you want to learn more about refactoring,
the best resources are the book Refactoring (Addison-Wesley) and the com-
panion web site, http://www.refactoring.com.
Want It Now?
Tired of waiting for Visual Studio 2005 or stuck using Visual Studio .NET
2003 for some reason? A number of commercial tools are available that add
similar functionality into Visual Studio .NET 2003:
ReSharper
From Jet Brains:
http://www.jetbrains.com/resharper
C# Refactory
From XtremeSimplicity:
http://www.xtreme-simplicity.NET/CSharpRefactory.htm
Figure 2-38. Reorder Parameters dialog