Reorder Parameters

You typically move parameters around in a method just for readability and maintenance. You might want the more important parameters to appear first on the method signature, or you might try to keep the order similar across like methods or overloads. You can see from Figure 9.22 that the Change Signature dialog allows you to move around the parameters using the up and down arrows (upper right).

As you change the parameter order, the resulting method signature is displayed below the parameter list (bottom of Figure 9.22). You also have the option to preview any changes that are made to callers of the method. Clicking the OK button applies the changes to both the method and its callers.

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.