The String Resource Tool
Do you use the ResourceManager to pull strings from embedded resource files (.resx)? This technique is a good way to store string values for localization or centralization of common strings. Here is a code snippet:
ResourceManager rm = new ResourceManager(“ResourceTest.strings”, Assembly.GetExecutingAssembly());
Console.WriteLine(rm.GetString(“accountNotFoundMsg”));
The two lines above assume that there is a strings.resx file in the project that has a named string of “accountNotFoundMsg”. When the second line runs the resource manager extracts the value of the accountNotFoundMsg from the embedded resource and writes it to the console.