How do I share a class library between a web service and a client. For
example, suppose I have a dll with a namespace Akamojo.Company which contains
a class Person. My web service looks something like this:
using Akamojo.Company;
[WebMethod]
public Person GetPerson()
{
return new Person();
}
In my client, I want to have something like this:
using Akamojo.Company;
using AkamojoService;
public void DoSomething()
{
Person Person = AkamojoService.GetPerson();
}
The problem is that Person is ambiguous in my client. It can be either
Akamojo.Company.Person or AkamojoService.Person. The compiler doesn't know
which definition for Person to use, even though they are indirectly the same.
How do I do this correctly?
Thanks,
-Darrell