Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi - I working through an example data layer class in VB.NET - whoever wrote it creates a namespace then creates only one class. I was wondering, why would you create a namespace for only one class? I thought that namespaces were for group a number of classes together and then you would use - imports myclasses etc...

Any comments appreciated...

  • *Experts*
Posted
Everything needs to be in a namespace. If you only have one class it needs to be in one too, but the persion simply created a new one instead of putting the class in any other namespace.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...