Results 1 to 3 of 3

Thread: Namespace issue?

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    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!
    Anti DUPLO machine!!!

  2. #2

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    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!
    Anti DUPLO machine!!!

  3. #3
    Hyperactive Member Arrow_Raider's Avatar
    Join Date
    Dec 2001
    Location
    AVR Lovers Club
    Posts
    423

    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
  •  



Click Here to Expand Forum to Full Width