public class SomeFunctionClass
{
publicdouble X;
...
}
public void SomeMethod(SomeMethodParameters params, int i)
{
Use(i);
...
}
I can add a method parameter:
public void SomeMethod(SomeMethodParameters params) {...}
It would be nice to add a context action to add the new parameter to the parameter class:
public class SomeFunctionClass
{
publicdouble X;
...
publicint i; // <--------- new parameter
}
public void SomeMethod(SomeMethodParameters params, int i)
{
Use(params.i);
...
}
(assuming i is not already in the parameters class...)
public class SomeFunctionClass
{
publicdouble X;
...
}
public void SomeMethod(SomeMethodParameters params, int i)
{
Use(i);
...
}
I can add a method parameter:
public void SomeMethod(SomeMethodParameters params) {...}
It would be nice to add a context action to add the new parameter to the parameter class:
public class SomeFunctionClass
{
publicdouble X;
...
publicint i; // <--------- new parameter
}
public void SomeMethod(SomeMethodParameters params, int i)
{
Use(params.i);
...
}
(assuming i is not already in the parameters class...)
Re: #14075- Extend MethodParemeters Class (see #11019)
As a context action it will too interfering because it is supposed to be available at almost any parameter. And the number of such context actions will have quadratic dependency on number of parameters.
Andrey Simanovsky - 08 Aug 06 14:32 Re: #14075- Extend MethodParemeters Class (see #11019)
As a context action it will too interfering because it is supposed to be available at almost any parameter. And the number of such context actions will have quadratic dependency on number of parameters.
Re: #14075- Extend MethodParemeters Class (see #11019)
We will implement it as an option to Extract Class from Parameters. It will be able not to create class but reuse one of the types of the parameters.
Andrey Simanovsky - 08 Aug 06 14:32 Re: #14075- Extend MethodParemeters Class (see #11019)
We will implement it as an option to Extract Class from Parameters. It will be able not to create class but reuse one of the types of the parameters.
As a context action it will too interfering because it is supposed to be available at almost any parameter. And the number of such context actions will have quadratic dependency on number of parameters.