Namespace and Project reference

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anandhi

    #1

    Namespace and Project reference

    I have a class A in my project. I also have a project reference projectB. The
    project and classA have method Add(). I have added the classA in my code by
    "using" in my webform. Will there be a compiler error, If I refer to add
    method of class A, as it is a method in the ProjectB also.
  • Göran Andersson

    #2
    Re: Namespace and Project reference

    Anandhi wrote:
    I have a class A in my project. I also have a project reference projectB. The
    project and classA have method Add(). I have added the classA in my code by
    "using" in my webform. Will there be a compiler error, If I refer to add
    method of class A, as it is a method in the ProjectB also.
    Not at all.

    There is nowhere that there is any doubt which of the methods it is that
    you are using.

    Comment

    • Anandhi

      #3
      Re: Namespace and Project reference

      Thanks very much

      "Göran Andersson" wrote:
      Anandhi wrote:
      I have a class A in my project. I also have a project reference projectB. The
      project and classA have method Add(). I have added the classA in my code by
      "using" in my webform. Will there be a compiler error, If I refer to add
      method of class A, as it is a method in the ProjectB also.
      >
      Not at all.
      >
      There is nowhere that there is any doubt which of the methods it is that
      you are using.
      >

      Comment

      Working...