Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-130913: "Initialize field from constructor(s) parameter" action not present when field is used (not initialized!)

$
0
0
Reporter Andris Kurmis (andyqp) Andris Kurmis (andyqp)
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).

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>