Share via


How to: Use IntelliSense for Override

Use this procedure to have IntelliSense implement an override method automatically. For more information, see IntelliSense for Override.

To use IntelliSense to implement an override method

  1. Create a console application.

  2. Place your cursor after the first right-pointing brace (}).

  3. Type override and press SPACEBAR.

    An IntelliSense list appears showing all overridable methods for this class. Selecting a method here invokes IntelliSense for Override, or you can type the method name as described in the following step.

  4. Type ToString so the line of code reads override ToString, and then press TAB.

    The following method will be placed in the Program class:

        public override string ToString()
        {
            return base.ToString();
        }
    

See Also

Reference

IntelliSense for Override

Other Resources

Automatic Code Generation