Refactoring – Generate Method Stub

Refactoring is a disciplined technique of restructuring your existing body of code by altering its internal structure without changing its external behavior.

Generating a method stub is useful when you are programming along one line and realize that you will need to define another method to perform another function. Rather than interrupt yourself to write the new method now, create the stub where you will need to call the method and continue to write code. You can go back later and actually define the method for which you created the stub.

To have Visual Studio generate the Method stub for you, hover your mouse pointer over the Intellisense icon, then click the icon that appears. Select and click the Intellisense message as shown in the figure below.

Generating a Method Stub in Visual Studio Team System.