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. ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.