O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Removing a Parameter

You invoke the Change Signature refactor by positioning your cursor inside a method signature and clicking Ctrl+. (or right-clicking and choosing Quick Actions). This 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 allows you to reorder the parameters on the method signature. Of course, once executed, the refactoring operation updates any callers with the new method signature.

Tip

There is another keyboard shortcut to invoke the Change Signature refactoring operation directly. First, position your cursor in the method that contains the parameters you want to remove. Next, play the keyboard chord Ctrl+R, V. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required