Telerik® JustCode™ by Progress

The Add Parameter quick fix is available once Telerik® JustCode™ has detected that adding a parameter to a method declaration can fix method invocation without conflicting existing method declarations. Executing this fix will automatically add a parameter to the declaration of the invoked method.


Language Support

Supported: C#, VB.NET

Not supported: JavaScript

Not relevant: ASP.NET, XAML, HTML

To add a parameter

  1. Position the caret over an underlined error for unknown method.
  2. Press Alt+Enter. From the pop-up menu, select Add 'int' Parameter to'Bar' At Position 1

    Add Parameter Select
  3. The result is:

    Add Parameter Result

Telerik® JustCode™ will update the method invocations with the default value of the parameter type if the option Update invocations when executing Add/Create Parameter quick fix is enabled.

See Also