Project Structure And Namespaces

Y

Yehia A.Salam

Hello,

I got confused with all the folders generated by VS and the way it handles
namespaces, my project simply consists of a control library and an
application that uses it, my namespaces is like that:

so in the control library I used this namespace:
namespace Xeen {
namespace UI{
public class ListBoxEx { ...

and in my application
namespace Xeen {
public partial class Form1 : Form {


is this the right to handle the project structure, and how should I organize
my folders, do I place the control library in the main application folder or
in a separate folder?

Yehia A.Salam
 
M

Michael Nemtsev

Hello Yehia A.Salam,

Y> I got confused with all the folders generated by VS and the way it
Y> handles namespaces, my project simply consists of a control library
Y> and an application that uses it, my namespaces is like that:
Y>
Y> so in the control library I used this namespace:
Y> namespace Xeen {
Y> namespace UI{

Why do u use nested namespace? just use Xeen.UI

Y> public class ListBoxEx { ...
Y> and in my application
Y> namespace Xeen {
Y> public partial class Form1 : Form {
Y> is this the right to handle the project structure, and how should I
Y> organize my folders, do I place the control library in the main
Y> application folder or in a separate folder?

it's up to u. It's better to use folder to divide projects rather then namespaces.
Namespace is more logical marker

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 

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


Top