R
Rob Meade
Hi all,
I was wondering if someone could offer me some advice with namespaces...
Primarily when and where to use them - you're explanations will need to be
aimed at the namespace-newbie )
I started a project this evening where I was given my classes namespace
declarations, but started to run into problems when some of the namespace
declarations contained a word that I had used as a class name...
For example...
Namespace Test.Me.Do
End Namespace
Now, if I had a class called "Do" - it'd get a "squiggle" in VS2005...
My main reason for using them really was to help, whilst developing my
application the type of "thing" I was dealing with...so a better example
(than the one above) might have been...
Namespace TrainingCompany.Courses
End Namespace
That namespace is declared at the top of my "Course" class - when using this
in code I can now create a nice to read object:
Dim Course As TrainingCompany.Courses.Course
Any advice appreciated..
Rob
I was wondering if someone could offer me some advice with namespaces...
Primarily when and where to use them - you're explanations will need to be
aimed at the namespace-newbie )
I started a project this evening where I was given my classes namespace
declarations, but started to run into problems when some of the namespace
declarations contained a word that I had used as a class name...
For example...
Namespace Test.Me.Do
End Namespace
Now, if I had a class called "Do" - it'd get a "squiggle" in VS2005...
My main reason for using them really was to help, whilst developing my
application the type of "thing" I was dealing with...so a better example
(than the one above) might have been...
Namespace TrainingCompany.Courses
End Namespace
That namespace is declared at the top of my "Course" class - when using this
in code I can now create a nice to read object:
Dim Course As TrainingCompany.Courses.Course
Any advice appreciated..
Rob