Namespace and Project reference

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Anandhi said:
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.
 
Back
Top