title: Self-modifying C# (MSIL) code?
body: <p>How can I dynamically modify MSIL code in-memory with C#/.NET?</p>
  
  <p>And yes, I'm really looking to <strong>replace existing</strong> code that's already in memory on the fly.<br>
  Specifically, I'm <strong>not</strong>:</p>
  
  <ul>
  <li>Looking to only generate <em>new</em> code (via expression templates, ILGenerator, etc.)</li>
  <li>Trying to emit a new binary module in the hopes of loading it into memory later</li>
  </ul>