Reporter |
|
---|---|
Created | Nov 9, 2009 2:48:31 PM |
Updated | Apr 6, 2018 7:30:36 PM |
Subsystem | Context Actions |
Assignee | Andrew Karpov (andrew.karpov) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | Backlog |
Affected versions | 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
For unused private fields there is a context action to generate field initialization code in class constructor ("Initialize field from constructor(s) parameter").
As soon as the field is used somewhere in code, this action is not available anymore without apparent reason.
Makes harder to write code in "reverse" order (usage, then field declaration, then field initialization from constructor parameter).
As soon as the field is used somewhere in code, this action is not available anymore without apparent reason.
Makes harder to write code in "reverse" order (usage, then field declaration, then field initialization from constructor parameter).