Reading string from resource file and editing it programmatically

Viewed 12005

How can I read string resource file? I have tried this already but I couldn't get the value. For editing it later I couldn't do anything. How can I edit it later programmaticaly? I want to edit its value with a string that I get from textbox.

Assembly assembly = this.GetType().Assembly;
manager = new ResourceManager("StringResources.Strings", assembly);
value = manager.GetString("Name");

For changing its value I tried to do this but it gives me an error does not contain a definition for Current. I try these in windows form.

Application.Current.Resources["Name"] = "abcd";

Please give me an advice Thanks in advance

1 Answers
Related