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.
Note |
---|
Language Support Supported: C#, VB.NET Not supported: JavaScript Not relevant: ASP.NET, XAML, HTML |
To add a parameter
- Position the caret over an underlined error for unknown method.
Press Alt+Enter. From the pop-up menu, select Add 'int' Parameter to'Bar' At Position 1
The result is:
Caution |
---|
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