IT Community - Software Programming, Web Development and Technical Support

Can we write a class without specifying namespace?

This is a discussion on Can we write a class without specifying namespace? within the VB.NET Programming forums, part of the Software Development category; Hi all, Can we write a class without specifying namespace? Which namespace does it belong to by default?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > VB.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 04-15-2008, 02:42 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 319
amansundar is on a distinguished road
Question Can we write a class without specifying namespace?

Hi all,

Can we write a class without specifying namespace? Which namespace does it belong to by default?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-18-2008, 10:07 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Cool Re: Can we write a class without specifying namespace?

Hey man...

Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you wouldn’t want global namespace.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
System Namespace kingmaker C# Programming 1 10-26-2007 05:24 AM
namespace - .NET Framework class hierarchy prasath ASP and ASP.NET Programming 1 08-18-2007 12:59 AM
Is there any way to use keyPressed method of Canvas class in Form class? bluesky Mobile Software Development 1 07-25-2007 06:02 AM
How can I find out the name of the namespace which a program is currently executing? kingmaker C# Programming 1 07-22-2007 11:32 PM
What’s the difference between Response.Write() andResponse.Output.Write()? prasath ASP and ASP.NET Programming 1 07-19-2007 03:56 AM


All times are GMT -7. The time now is 04:25 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0