Hi
I'm trying optimize certain pieces of my code by generating and compiling
the source at runtime.
I need to make 2 methods for each class, a read and a write. I would like
to do this through generated code because than I don't need to use the
reflection all the time, nor do I need to box and unbox each item.
I would like to have a lazy approach here, I would like to generate and
compile the source as late as possible. I don't mind to compile the read
and write function at the same time.
Is it ok if I would make a seperate Assembly for each class? I would end up
with a couple of hundred tiny assemblies in my application then.
I have found examples on how to do this, but how can I "append" 2 methods to
an already existing in memory assembly? Without the need to recompile
everything. I would like to compile only those 2 methods or the class
containing these two methods.
kind regards
Alexander