The Extract Class From Parameters, once invoked on a class parameter with empty selection, all parameters will be extracted to newly created class members and replaced with a single parameter of the new class type.
Note |
|---|
Language Support Supported: C#, VB.NET Not relevant: JavaScript, ASP.NET, XAML, HTML |
To extract class from all parameters
Place the cursor inside the parameters of a method invocation.
Press Alt+Insert. From the pop-up menu select Extract Class From Parameters.
JustCode will create a class which will wrap all the parameters and keep the logic of the code.
The result is:
To extract class from selected parameters
Select with the caret the parameters you would like to wrap in a class.
Press Alt+Insert. From the pop-up menu select Extract Class From Parameters.
JustCode will create a class which will wrap the selected parameters and keep the logic of the code.
The result is:
See Also