title: Replacing a .NET type at runtime
body: <p>I have a .NET assembly which has defined a type <code>T</code> at compile time, and I have instantiated an object <code>my_t</code> as an instance of this type.</p>
  
  <p>I am wondering if it is possible in .NET to use the runtime compiler services to re-compile this class, then load the new class definition into the currently executing assembly, so when I call methods off of <code>my_t</code>, they will use the new code.</p>
  
  <p>I am not changing the signatures of any of the methods, just the method bodies.</p>
  
  <p>Any .NET gurus out there know if this is possible? Thanks in advance for any help!</p>