Solved

Class Library Question (namespaces)

Posted on 2003-12-01
4
247 Views
Last Modified: 2010-04-16
Is there a way to include Multiple Dlls (not the cs files) with the same namespace (ie one had Sample.test.one the other is Sample.test.two) into one Library or dll so that including that single Dll will include all the other dlls.. so

using Sample.test

will include all the Dlls in the Sample.test namespace?

I hope this makes sense...
0
Comment
Question by:willywig
4 Comments
 
LVL 18

Accepted Solution

by:
testn earned 250 total points
ID: 9854392
No. If you want to include the dll, you have to add the reference to those dlls only. "using" keyword will help you to write code in shorter form rather than putting everything as fully qualified name.
0
 
LVL 20

Expert Comment

by:TheAvenger
ID: 9856505
Actually if you have the same namespace as you mentioned and you put references to all DLLs, then you can use a single using Namespace; line and then you can use the classes from all DLLs in the code directly, without qualifying the namespace as well. However you still need to add references to all DLLs
0
 

Expert Comment

by:small_potato
ID: 9856707
Add dll(s) reference to a project means make early-binding to that dll(s). This action cannot embed that dll(s) to the project. So, you need to include the referenced dll(s) with the execuable.

And 'using Sample.test;" means that gives a shorter name for using the class under the Sample.test namespace. i.e. All the class under the namespace Sample.test can only use by only its class name one or two.
*It is just for convinence of coding, it doesn't have any help for the previous condition.


0
 
LVL 1

Author Comment

by:willywig
ID: 9859307
Thanks that is what I wanted to know :)
testn answered first so he gets the points...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now