Reporter | Amir Kolsky (kolsky) |
---|---|
Created | Aug 5, 2006 8:19:15 PM |
Updated | Apr 19, 2018 5:13:54 PM |
Subsystem | Context Actions |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Open |
Type | Feature |
Fix version | Backlog |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
See: http://www.intellij.net/tracker/resharper/viewSCR?publicId=11019
Given
It would be nice to add a context action to add the new parameter to the parameter class:
Given
public class SomeFunctionClassI can add a method parameter:
{
public double X;
...
}
public void SomeMethod(SomeMethodParameters params, int i)
{
Use(i);
...
}
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(assuming i is not already in the parameters class...)
{
public double X;
...
public int i; // <--------- new parameter
}
public void SomeMethod(SomeMethodParameters params, int i)
{
Use(params.i);
...
}