View Full Version : CodeDom Namespace Help


Alberto Cardoso
06-27-2007, 06:24 PM
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;

--
Alberto Cardoso

Jan De Messemaeker
06-27-2007, 06:48 PM
From someone who develops for Project:

?????????

--
Jan De Messemaeker
Microsoft Project MVP
http://users.online.be/prom-ade
"Alberto Cardoso" <AlbertoCardoso@discussions.microsoft.com> wrote in
message news:6FA20996-A314-4097-A717-B590B45705DD@microsoft.com...
>
> 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;
>
> --
> Alberto Cardoso
>