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.
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.
Unless the class is static, classes without constructors are given a public parameterless constructor by the C# compiler in order to enable class instantiation.
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 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With