Share via


IntelliSense for Override

IntelliSense is designed to help you override inherited members. When you type override and then press SPACEBAR, IntelliSense displays all of the valid base class members that you can override in a pop-up list box. Typing the return type of the method after override will prompt IntelliSense to only show methods that return the same type. When IntelliSense cannot find any matches, it will display all of the base class members.

Note

To disambiguate virtual methods with the same name and different parameter lists, IntelliSense displays their signature in the pop-up list box.

When you select a member from the pop-up list box, IntelliSense generates the code that completes the member that you selected and highlights the first logical statement to edit. For more information, see How to: Use IntelliSense for Override

The code that is generated by IntelliSense for override is modeled by the code snippet defined in the file MethodOverrideStub.snippet. Code Snippets are modifiable. For more information, see How to: Manage Code Snippets.

See Also

Tasks

How to: Implement Abstract Base Classes

Reference

virtual (C# Reference)

abstract (C# Reference)

Other Resources

Automatic Code Generation