New namespace

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

If I create a new namespace, where do I locate it so it doesn't have to be
part of the project or solution?

using mynewnamespace;
 
If you use it in separate project you'll have to AddReference in order to be
able to use it, else please pay attention on hierarchy of namespaces. eg
namespace nsone
{
namespace ntwo
{
public class test()
{}
}
}

should be retrived as
using nsone.ntwo;
test t = new test();
 

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

Back
Top