title | description | ms.date | ms.topic | ms.custom | author | ms.author | manager | ms.subservice |
---|---|---|---|---|---|---|---|---|
Generate a method override |
Learn how to immediately generate the code for any method which can be overridden from a base class. |
01/26/2018 |
reference |
ide-ref |
Mikejo5000 |
mikejo |
mijacobs |
general-ide |
This code generation applies to:
-
C#
-
Visual Basic
What: Lets you immediately generate the code for any method which can be overridden from a base class.
When: You want to override a base class method and generate the signature automatically.
Why: You could write the method signature yourself, however this feature will generate the signature automatically.
-
Type
override
in C# orOverrides
in Visual Basic, followed by a space, where you would like to insert an override method. -
Select the method you want to override from the base class.
[!TIP]
The selected method or property is added to the class as an override, ready to be implemented.