Default Project Namespace

  • Thread starter Thread starter Tank
  • Start date Start date
T

Tank

How do I get the default namespace of aproject programatically ? The idea is
to not hardcode the default namespace when accessing embedded resources in
the project. For example,

assembly.GetManifestResourceStream("MyNameSpace.testFile.rtf"));

MyNameSpace if the default namesapce. I would like to have something like
this:

assembly.GetManifestResourceStream(GetDefaultNameSpace()+"testFile.rtf"));

Thanks.
 
What about using the Registry instead? It's not as elegant a solution
as you mentioned but at least it's not hard-coded.
 
Back
Top