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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Default Project Namespace 3
Namespace confusion 1
Namespace question 2
Play Embedded Sound Resource? 6
Limiting default namespaces ... 2
Resources 6
Loading Embedded Resources 5
Visual Studio generated namespaces 3

Back
Top