views:

1667

answers:

1

Say I am inheriting from a class with several "overloaded" constructors.

By any chance is there a short cut in Visual Studio which writes the constructors in the derived class with the same signatures as in the default class for me, with boilerplate code which calls MyBase.New(...) and plugs in the arguments for me?

EDIT: As far as I can find there is no such shortcut built-in, however there is one in resharper as suggested by Raymond.

+4  A: 

I don't know about a shortcut in a standard Visual Studio installation, but if you install the excellent Resharper plugin from jetBrains, it is Alt-Insert, C. I don't develop without it.

Raymond Roestenburg
Wow, that plugin is brilliant!!!
LnDCobra
A link to the plugin would have been excellent: http://www.jetbrains.com/resharper/
Toto