Is it possible to save a dynamic assembly to disk?
I recently bought Ayende's book Building DSLs in Boo (buy it, read it, it's awesome) but I'm coming up against an implementation problem and I want to see what the generated code looks like. I would normally use reflector to look at the code but in this case the assemblies are dynamic and only in memory. Is there a way to save dynamic assemblies to disk so that I can reflect them? EDIT / My Answer : Wow, it took awhile to come back to this one. Unfortunately I left an important bit out from the original question. Important Bit: I'm using Ayende's RhinoDSL library as he recommends in the book.