For each of your source files, the Explorer displays nodes for all constructors
and initializers under the Constructors ()
category node. Property information about each constructor or initializer is
presented in its Explorer icon and property sheet. Double-click any constructor
or initializer node in the Explorer to jump to its location in the Source Editor.
If your class does not already contain a constructor, you can add one by right-clicking
the Constructors category node and choosing Add Constructor.
A property editor appears in which you can specify basic information for the
constructor, such as modifiers and parameters. You can also add an empty initializer
to your class by right-clicking the Constructors category node and choosing
Add
Initializer.
You can view a constructor's property sheet by right-clicking its node and choosing Properties. You can edit the constructor's properties in the property sheet itself, or you can right-click the constructor node and choose Customize. The node's contextual menu also contains commands for copying, cutting, pasting, and deleting the constructor.
The contextual menu for constructor nodes also contains a Tools submenu. The commands in the Tools submenu let you perform a variety of actions on the class, such as overriding inherited methods, synchronizing changes, and localizing your code. Any commands you choose from the the Tools submenu are executed on the entire class.
Icon | Description |
---|---|
![]() |
Category node for constructors |
![]() |
Constructor with default access |
![]() |
Private constructor |
![]() |
Public constructor |
![]() |
Non-static initializer |
![]() |
Static initializer |