CodeDom Namespace Help

A

Alberto Cardoso

Hello!

I created a class that creates a form and shows it.
Im reading the csharp code from a .cs file.
The thing is i have to reference all the namespaces before compiling the
source code file with codedom.
Is there any way to get the namespaces from the files? I dont want do read
every class gathering the namespaces strings . Is there a better way?

What about Reflection.Emit is it easier to create dyanamic code?

many thanks;
 

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