|
-
Jun 30th, 2009, 08:28 PM
#1
Thread Starter
Hyperactive Member
Namespace issue?
Hi there,
I seem to have some sort of namespace issue? I think... I am not sure what the deal is.
I have created several classes - they all exist in the namespace called LocalSite, of course I use the directive "using LocalSite;" and everything compiles just fine however visual studio seems to have lost track of it somehow.
my code compiles just fine but for instance I have something like this.
Code:
Contact brideContact = new Contact();
I get the red line under Contact and it tells me that I am the type or namespace cannot be found, etc, etc... and then of course intellesense isn't working.
UHG!!! This is frustrating - anyone know what the issue might be?
Thanks!
-
Jun 30th, 2009, 08:32 PM
#2
Thread Starter
Hyperactive Member
Re: Namespace issue?
That was weird - i just broke is by putting XXX after the namespace declaration and then fixed it and it seemed to cause it to get it's head out of it bottom... I still would like to know what the issue is.
Thanks!
-
Jul 5th, 2009, 06:39 AM
#3
Hyperactive Member
Re: Namespace issue?
I don't know if this would be related, but you don't need using statements for accessing members of the same namespace. If ClassX and ClassY are both in namespace NSExample, they don't need "using NSExample;"
My monkey wearing the fedora points and laughs at you.
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
|