Solved

Class Library Question (namespaces)

Posted on 2003-12-01
4
245 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks that is what I wanted to know :)
testn answered first so he gets the points...
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

12 Experts available now in Live!

Get 1:1 Help Now