Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest way to jump to a constructor(s) in a class?

Tags:

I’m using Visual Studio 2010, with Resharper. Many classes in my project are very big and I wonder if there is a shortcut to jump between constructor(s) of my class.

like image 597
Amir Rezaei Avatar asked Mar 17 '11 07:03

Amir Rezaei


People also ask

What is the use of constructor in c#?

In C#, constructor is a special method which is invoked automatically at the time of object creation. It is used to initialize the data members of new object generally. The constructor in C# has the same name as class or struct.

Do classes need constructors c#?

Unless the class is static, classes without constructors are given a public parameterless constructor by the C# compiler in order to enable class instantiation.

What is constructor in vb net?

A constructor in VB.NET is defined as a procedure that has the name New (rather than Initialize as in VB 6.0) and can accept arguments to allow clients to pass data into the instance to assist with initialization. Constructors do not return values and therefore are always declared as a Sub.

What is a constructor in programming?

What Does Constructor Mean? A constructor is a special method of a class or structure in object-oriented programming that initializes a newly created object of that type. Whenever an object is created, the constructor is called automatically.


1 Answers

You can use Resharpers Goto File Member which is Alt + \
The constructor seems to be always on top of the list, so you just need to Alt + \ and Enter to go to the constructor of the current class.

like image 78
l.poellabauer Avatar answered Sep 20 '22 15:09

l.poellabauer