title: Serialize in memory object with C#
body: <p>I've got a program that picks up some code from script files and compiles it.
  And It works fine.</p>
  
  <p>The problem is: in the scripts I declare a couple of classes and I want to serialize them.
  Obviously the C# serializer (xml and binary) doesn't like to serialize and the de-serialize object defined in a in-memory assembly.</p>
  
  <p>I prefer to don't leave the in-memory assembly so i'm looking for another way of serializing, but in case, is possible to build assembly in memory and eventually write it on file ?</p>