T O P I C R E V I E W |
Curtis |
Posted - Dec 12 2007 : 2:51:51 PM When creating classes often times we write a method with several parameters. We then want to write simplified overloads of those same methods.
Create a refactoring that, when the cursor is on a parameter, gives the option of creating a method without that parameter. In the new method call the existing method with the default value (from the type's constructor). |
1 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Dec 13 2007 : 3:11:03 PM This sort of exists, if you trigger "Add Similar Member" on the function.
Picking up the default constructor for the type is not that reliable, not all types have default constructors. What about "int", "float", "void *" and structures? |
|
|