I am writing a program to run test scenarios against a web service.
The test scenarios are contained in an XML document. I need to check
the returned value of the web service against a node in the XML
document.

If the result of the web service were un-typed I could use a single
line of code to solve my problem:

if (webServiceResult[element].ToString() == node.InnerText)

HOWEVER, the web service result variable is strongly typed and I would
need to write a switch statement for every element in the web service.

Since I'm lazy, how can I convert the strongly-typed web service
result object into an un-typed object I can reference using string
variables?

Reply via email to