Telerik® JustCode™ by Progress

The Initialize From Constructor quick fix is available once Telerik® JustCode™ has detected that a private class member is not initialized.


Language Support

Supported: C#

Not supported: VB.NET

Not relevant: ASP.NET, XAML, JavaScript, HTML

To initialize from constructor

  1. Position the caret over the underlined class member.

  2. Press Alt+Enter. From the pop-up menu, select Initialize 'a' from Contructor

    Initialize From Constructor
  3. Type the constructor parameter's name and hit Enter

  4. The result is:

    Initialize From Constructor Result

See Also

Other Resources