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;
 
Top