Tank,
I am sure you mean you want to get the current namespace as it is defined in
the top of your class, this is automatically set from your default namespace
setting within the project each time you add a class. Look at the
MethodBase object for getting current information about your class or exe.
HTH,
Matt
"Tank" <an*******@discussions.microsoft.com> wrote in message
news:uj**************@TK2MSFTNGP09.phx.gbl...
How do I get the default namespace of the project programatically ?
For example, the following code loads the embedded resource in the
assembly and "MyNS" is the default namespace.
assembly.GetManifestResourceStream("MyNS.Test.Rtf" );
I do not want to hardcode it. I wish to have something like this:
assembly.GetManifestResourceStream(GetDefaultNameS pace()+".Test.Rtf");
Thanks.