title: C# edit resx file programmatically
body: <p>In my app I am looping over all the entries from a resx file with a certain culture, in my case Norwegian. Then I put those strings through a google translator api to get the Swedish text.</p>
  <p>Now I am trying to replace the Swedish text in the Swedish resx file. Is it possible to do so?</p>
  <p>This is how I am getting the Swedish version</p>
  <pre><code>ResourceSet resourceSet = Texts.ResourceManager.GetResourceSet(new CultureInfo(&quot;nb-NO&quot;), true, true);
  
  foreach (DictionaryEntry entry in resourceSet){
      string resourceKey = entry.Key.ToString();
      string resource = entry.Value as string;
      arguments[&quot;q&quot;] = resource;
      string result = Call(arguments);
  }
  </code></pre>
  <p>So I am trying to put the Swedish version into the Swedish resource file. Any views?</p>