Is possible to Create Dll at runtime?

H

Hugo Nugra

Is possible to compile some C# code created at runtime and make an Dll; then
we can use reflection to instantiate the classes creaded, there by we can to
get a very versatile applications with higth performance.

Thank You
 
B

bart_deboeck

Hi Hugo,

You can generate C# code at run time with CodeDom, there is a
(simple) tutorial on
http://samples.gotdotnet.com/quickstart/howto/doc/listbuilder.aspx.
Loading classes and assemblies at run time is possible with
Assembly.Load, check the Type Discovery section on
http://www.oreilly.com/catalog/progcsharp/chapter/ch18.html.
If you'd like a broad view over code generation, the following
website might be usefull : http://www.codegeneration.net/.

Succes,
Bart

http://www.xenopz.com/blog/bartdeboeck/

Hugo Nugra schreef:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top