Introduce ParameterThe book has now been published and the content of this chapter has likely changed substanstially.
A value used inside a method needs to be passed as a parameter.
The Introduce Parameter refactoring is used to add a parameter in a method declaration if you need some value to be passed in a method call. The method usage(s) are changed also. References to the parameter are resolved unlike in the Change Method Signature refactoring (where an introduced statement is simply inserted as text).
Copyright © 2003-2008 Gerard Meszaros all rights reserved