Back to Devexpress

Constructor

coderushforroslyn-401059-coding-assistance-declare-menu-declare-providers-constructor.md

latest809 B
Original Source

Constructor

  • Dec 13, 2021

Generates a constructor of a class, structure, or record with parameters that initialize the selected members.

Selectable items : type members that you want to initialize.

Options

Constructor Accessibility

Values:

  • public (default value)
  • internal
  • protected internal
  • protected
  • private

Generate Properties

Values:

  • yes
  • no (default value)

Example

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

Positional Records Support

The Constructor feature supports positional records: