|
-
Feb 11th, 2003, 10:17 PM
#1
Namespaces...
Is it possible to share a namespace across multiple libraries? For instance, I have used namespace Joe in one class library, and I would like the classes in that library to show up in the same list as the classes in another library that also defines the namespace Joe.
Right now, I have this...
Code:
Imports SomeLib.Joe
Imports SomeOtherLib.Joe
'blah, blah
Dim x As [SomeLib.Joe.]SomeClass '...
And I would just like to be able to do
And have access to SomeLib's classes, and SomeOtherLib's classes.
The same way System works. There is a separate System.IO component, System.XML, System.Text, etc, and yet they all show up under the common System namespace. See what I mean?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 11th, 2003, 10:35 PM
#2
Sleep mode
I think , it's working like .net framework Classes .It can be shared across other libraries !
-
Feb 11th, 2003, 10:36 PM
#3
Hmmm, I'll have to mess around with it some more then...
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 12th, 2003, 12:10 AM
#4
Yes you can and the namespace for a project can be set in the project properties.
-
Feb 12th, 2003, 10:26 AM
#5
Well going by your example. the answer is no
if your setup is:
SomeLib.Joe
SomeOtherLib.Joe
you cant just import Joe.
If it is reversed
Joe.SomeLib
Joe.SomeOtherLib
then you can
-
Feb 12th, 2003, 10:26 AM
#6
Well going by your example. the answer is no
if your setup is:
SomeLib.Joe
SomeOtherLib.Joe
you cant just import Joe.
If it is reversed
Joe.SomeLib
Joe.SomeOtherLib
then you can
-
Feb 12th, 2003, 01:29 PM
#7
Originally posted by Cander
Well going by your example. the answer is no
if your setup is:
SomeLib.Joe
SomeOtherLib.Joe
you cant just import Joe.
If it is reversed
Joe.SomeLib
Joe.SomeOtherLib
then you can
Yeah, I saw Ed's post about setting the root namespace, and I think that should do it.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|