Hi, i was just wondering, if i'm creating my own class, and in that I 'Import' from given namespaces, do I then need to import them again when I import my own classes into my project?
I hope the question makes sense.
Cheers
Printable View
Hi, i was just wondering, if i'm creating my own class, and in that I 'Import' from given namespaces, do I then need to import them again when I import my own classes into my project?
I hope the question makes sense.
Cheers
No, from what I know of C++, you don't have to, I would assume the same with VB.net. However, if there are supporting files necessary for the imported files/whatever, you have to have them also, because when you import something that imports *think* it doesn't inlude the supporting files anymore than just having the original.
Hope this reply makes sense!
Bantam is right
you don't have to import the namespace from where you use the class.
That is unless you want to use that namespace outside of the class's functionality i.e. use it when not using something to do with the class
god that's kinda hard to explain!