|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to get the default namespace at runtime ?How can I get the default namespace of my executable assembly at runtime?
-- Thanks Sharon "Sharon" <SharonG@newsgroups.nospam> wrote in message An assembly does not have a default namespace. It can contain several news:92A905A4-153E-4E42-B4FA-F7CC407A412C@microsoft.com... > How can I get the default namespace of my executable assembly at runtime? classes in several namespaces, and none of them is "default". When you are programming in Visual Studio, the project has a "default namespace" which determines the namespace that will be written into the source code when you add a new class to the project. As far as I know, this "default" of the project does not get compiled into the assembly. If you do not change any of the properties of the project in Visual Studio, this default namespace happens to be the same as the name of the assembly. You could get that at runtime through Assembly.GetExecutingAssembly().
Other interesting topics
Print using GDI+ and plain PrintDocument object to a pdf file
Where do I get Crystal_regwiz merge modules? Problem passing a Valuetype to a Delegate? set focus on the program with win32 lambn install assembly in GAC DateTime and ParseExact I am having difficulty in converting string to datetime A problem with System.Configuration namespace Retrieving date from sql server. |
|||||||||||||||||||||||