What is the code-snippet or short cut to create a constructor in Visual Studio?
Visual Studio 2010 and C#.
I've used before but I can't remember.
What is the code-snippet or short cut to create a constructor in Visual Studio?
Visual Studio 2010 and C#.
I've used before but I can't remember.
Type "ctor" and the TAB, this will create the default constructor for the class you are in
public MyClass()
{
}
On your previous question someone gave an answer where you can see all the code-snippets.
UPDATE It seems that in some cases you will have to press tab twice. Thanks @ho1.