The Create Parameter quick fix is available once Telerik® JustCode™ has detected an unknown identifier in a method or constructor. By executing this fix, Telerik® JustCode™ automatically creates a parameter in the current method/constructor with the same name as the unknown identifier.
Note |
---|
Language Support Supported: C#, VB.NET Not supported: JavaScript Not relevant: ASP.NET, XAML, HTML |
To create a parameter
- Position the caret over an unknown identifier.
Press Alt+Enter. From the pop-up menu, select Create Parameter 'the unknown identifier'
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