Hi,
When I have a class that has an object variabel where other types is in. When I send a web-request to the server and gets the variable, it works fine when the data is set to known-types. The problem is when I want to use the data in the object returned. I can not typecast it and gets an error when trying to getType() of the object.
How can I make it it's own type of the content? I know the type because of other variables in the class so I just have to make it of this type but how? I have thought about making a xml-parser of these object to the given class; but do not know if this is possible at all and nessesary at all?
Wcf object error
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

PJ MartinsRank #2,548 · 548 reputationPosted Jun 2, 2010, 8:48 AM EDT
Daniel M3 reputationPosted Jun 3, 2010, 11:09 PM EDT
But thanks for the reply, I've marked it as an answer. :)