Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Typeof() problem
Message
 
To
14/12/2005 12:44:07
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01077796
Message ID:
01078594
Views:
30
Hello Bonny, sorry for the slow response I have not had access to the Web for a while, the way I call Ricks' DeserializeObject is as shown in his article

i.e
MyConfig cfg; // MyConfig is a subclass of wwAppConfiguration

cfg = wwUtils.DeserializeObject("Mycon.cfg",typeof(MyConfig),false)
I resolved the original error by casting cfg to my class type
cfg = (MyConfig) wwUtils.DeserializeObject("Mycon.cfg",typeof(MyConfig),false)
but it now fails on the line ( in the DeserializeObject method )

serializer = new XmlSerializer(ObjectType);

where ObjectType is the result of typeof(MyConfig), I don't have the time right now to perservere with it but thanks for your interest, if you want I can send you the complete code, thanks again
Regards,
Peter J. Kane



Pete
Previous
Reply
Map
View

Click here to load this message in the networking platform