I am working on a project that uses many web services. Many of them return the same class as a response. Right now, I am wanting to be able to pass the result from one web service in as a parameter to another. This isn't working though. When I try to implicitly cast it, it says it can't be implicitly cast. When I try to explicitly cast it, it chokes and says that they cannot be cast to the other class. Here's an example:
Service1.SameClass result = service1.call();
Service2.SomeResult = service2.call(result);
The service2.call() method accepts the type Service2.SameClass. Both Service1.SameClass and Service2.SameClass are exactly the same.
Is there any way to make them reference the same class when I import them? Or even after I import them? Or at least to be able to cast them to eachother?
Thanks a bunch
**Edit -- Almost forgot. I'm using Visual Studio and C#