Remove Parameters

The Remove Parameters refactor operation enables you to select one or more parameters from a given method, constructor, or delegate and have it or them removed from the method. It also works to update any callers to the method and remove the value passed to the parameter.

You invoke the Remove Parameters operation by positioning your cursor inside the method signature and then selecting the Remove Parameters menu item from the Refactor menu. You can also get to this operation through the context menu (right-click). In addition, this operation is available from the Class Designer from inside both the class designer and the Class Details window.

Tip

To invoke the Remove Parameters operation from the keyboard, first position your ...

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.