Posted on: 8/20/2013 1:52:49 PM | Views : 919

Is it possible to have one method that returns the same data but as different objects? But this method would need to return the object that the "call" is waiting for; I don't want it to return.
For example, one of the calls requires a Stream object while the other requires a datatable. One of these calls is to a WCF service and it requires a Stream; the other call is a regular method call and is waiting for a datatable.
Can a method return a one object or the other? I can be more flexible with the call that uses the datatable, but the method in the WCF service has to return a Stream.
Thanks.
...

Go to the complete details ...