Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Project Structure Question
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00779032
Message ID:
00779071
Views:
28
>Does the directory and project structure need to match the namespace?

Absolutely not. Start out simple and just create two projects, one for your UI (forms) and another for your business objects. This is how Kevin's wizard sets things up.

You can even have multiple namespaces in a single cs file, were you so inclined. There need not be any relationship to the directories.
namespace NameSpace1
{
	public class TestClass{}
}

namespace NameSpace2
{
	public class TestClass2
	{
		public void Test()
		{
			NameSpace1.TestClass x = new NameSpace1.TestClass();
		}
	}
}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform