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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top