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 (permalink)  
Old 04-15-2008, 01:42 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 320
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
Sponsored Links
  #2 (permalink)  
Old 04-18-2008, 09:07 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Namespace kingmaker C# Programming 1 10-26-2007 04:24 AM
namespace - .NET Framework class hierarchy prasath ASP and ASP.NET Programming 1 08-17-2007 11:59 PM
Is there any way to use keyPressed method of Canvas class in Form class? bluesky Mobile Software Development 1 07-25-2007 05: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 10:32 PM
What’s the difference between Response.Write() andResponse.Output.Write()? prasath ASP and ASP.NET Programming 1 07-19-2007 02:56 AM


All times are GMT -7. The time now is 12:43 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0