Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Initialize from parameter messes up method/constructor signature #32

Open
abartho opened this issue Aug 13, 2017 · 0 comments
Open

Initialize from parameter messes up method/constructor signature #32

abartho opened this issue Aug 13, 2017 · 0 comments

Comments

@abartho
Copy link

abartho commented Aug 13, 2017

If a method signature or a constructor span multiple lines, and "Initialize ... from parameter" is executed for a parameter on the second or a subsequent line, the new field or property is generated within the method signature or constructor.

Example:

public void DoSomething(int par1,
   int par2)
{
}

Calling "Initialize field from parameter" on par2 results in:

public void DoSomething(int par1,
private readonly int par2;  //this is always generated one line above the parameter declaration
int par2)
{           
    this.par2 = par2;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant