I have a asmx web service that has exposed my Product and Order object.
I've a non .NET client that builds their own Product and Order classes using SOAP libraries.
Now, in my web serivce, i've a web method SaveEntity(object entities) where the entities array holds Product or Order or both objects it receives from non .NET client.
Now, I need to extract the type information for each of the entities inside the object array. The first choice is object.GetType(). But my question is: is it guaranteed that object.GetType would return the exact type information (Product or Order for this instance)?
Thanks in advance
View Complete Post