This is the seventh in a series of quick how-to articles on ReSharper.
Tip #7 – Move String to Resource
Use: Moves a string into a resource file to enable localization.
Tip: Ensure your project contains at least one Resource (resx) file or the operation will fail.
Before
1: public string YouRock()
2: {
3: return "No, YOU rock Mr. Method-Caller!";
4: }
Right-click the string –> Refactor –> Refactor This…

Move to Resource

After
1: public string YouRock()
2: {
3: return StringResources.No_YOU_rock_Mr_Method_Caller;
4: }
Happy coding!
Top Links
.NET / Visual Studio
Web Development
Design / Methodology / Testing
Silverlight / WPF / Windows Phone
Podcasts / Screencasts / Videos
Community / Events
Database
Miscellaneous
More Link Collections
The Geek Shelf
del.icio.us Tags:
vs2010,
resharper,
visual studio achievements,
windows phone,
xbox,
kinect,
windows azure,
css,
unit testing,
wcf,
MEF,
design patterns,
sql server,
wpf,
silverlight
Top Links
.NET / Visual Studio
Web Development
Design / Methodology / Testing
Silverlight / WPF / Windows Phone
Podcasts / Screencasts / Videos
Community / Events
Database
Miscellaneous
More Link Collections
The Geek Shelf
del.icio.us Tags:
vs2010,
windows 8,
winrt,
monotouch,
sql server,
data explorer,
windows phone,
silverlight,
lightswitch,
wpf,
css,
android,
asp.net,
wcf,
resharper,
entity framework