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

RSRP-227203: New refactoring: introduce Format String argument

$
0
0
Reporter Maarten Nieber (Maarten.Nieber) Maarten Nieber (Maarten.Nieber)
Created Mar 11, 2011 4:28:57 PM
Updated Jan 26, 2012 9:11:43 PM
Resolved Jan 26, 2012 6:08:11 PM
Priority Normal
Type Feature
Fix versions 6.0
State Fixed
Assignee Ilya Ryzhenkov (orangy)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build 6.5.1.3521
Say I have a string:
string s = "Have a nice day";

I would like to able to select the word 'nice' and apply a refactoring "Introduce Format String
argument".

The new code should be:
string s = string.Format("Have a {0} day", "nice");

Then, if a I want, I can easily change this to:
string s = string.Format("Have a {0} day", GetDayType());

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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