title: Write/Read resources with System.Resources.ResourceManager
body: <p>I want to be able to write and read resources with the ResourceManager class in Visual Basic .NET (2010) instead of using the Win32 API (UpdateResources)</p>
  
  <p>I tried to first read resources like this:</p>
  
  <pre><code>Dim ResMan As New Resources.ResourceManager("Resources", System.Reflection.Assembly.GetExecutingAssembly())
  Dim Bytes As Byte() = DirectCast(ResMan.GetObject("Bytes"), Byte())
  ResMan.ReleaseAllResources()
  </code></pre>
  
  <p>And it worked, but then I tried to write resources, but it didn't work at all, I kept getting errors, and honestly my code was so dirty I felt ashamed.</p>
  
  <p>So basically I need a way to write resources using ResourceManager.</p>