I am experimenting with the CSharpCodeProvider .NET Code DOM class an I am able to compile an assembly and create an instance defined within the assembly, but I'm interested to know whether it is possible to 'inject' code or rather a class into a namespace within the executing assembly.
I could possibly work around the problem by compiling the code into an assembly file however I would like to do this in memory if possible.