Telerik® JustCode™ by Progress

The Add Base Constructor Invocation quick fix is available once Telerik® JustCode™ has detected a missing constructor invocation to the base-class constructor. Telerik® JustCode™ suggests you to make an explicit call to a base constructor by using the base keyword and setting default values for it.


Language Support

Supported: C#, VB.NET

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

To create a constructor

    1. Position the caret over the constructor starting block brace.
    2. Press Alt+Enter. From the pop-up menu, select Add Base Constructor Invocation.

      Add Base Constructor Invocation before
    3. The result is:

      Add Base Constructor Invocation after

    See Also