Reporter |
![]() |
---|---|
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());
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());