Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 02-20-2006, 02:08 PM Namespace Queries
Super Talker

Posts: 148
Trades: 0
Hi,

I am just wondering if a namespace includes the name of the class library that you have created? For example, if i have a class using a namespace of ABC.123 and my class library project name is also called ABC. When i add in the import statement, it should be "ABC.ABC.123" right? The namespace ABC will be the second and first level of the namespace right?

Thanks
shaoen01 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-21-2006, 04:27 PM Re: Namespace Queries
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Not in a using (Imports in VB) clause. You just include the namespace in that instance.

If you want to refer to a class in a namespace without putting it in your using clause, you can refer to it usinf a fully qualified path, such as:
MyNamespace.SubNamespace.ClassName.SomeFunction();
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 02-22-2006, 02:29 AM Re: Namespace Queries
Super Talker

Posts: 148
Trades: 0
oh okay ... thanks.
shaoen01 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Namespace Queries
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11629 seconds with 12 queries