The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.1
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Constructor

Generates the constructor for a class with parameters that initialize the selected members.

Selectable items: type's members that you want to initialize.

Options:

  • Constructor Accessibility

    Values:

    • public (selected by default)
    • internal
    • protected internal
    • protected
    • private
  • Generate properties

    Values:

    • yes
    • no (selected by default)

Example

The screencast below shows how to use the Constructor declare action in Declare Menu.

Constructor