The XmlSerializer is not really intended for anything but binding XML to
simple data classes, check [0] for a more detailed discussion.
Why do you want to serialize a Type object to a string anyway? There isn't
much state information in a Type object that's interesting to serialize. If
you need to store information about what Type you were dealing with, then
storing the Type's FullName property will suffice.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
[0]
http://www.topxml.com/xmlserializer/...le_classes.asp
"Maersa" <ma*****@hotmail.com> wrote in message
news:Oa**************@TK2MSFTNGP12.phx.gbl...
Hi All,
Was anybody able to serialize the "Type" class properly using
XmlSerializer()....
Want to serialize and deserialze the Type in a string form, but can this
be done ?
myobj.Type = typeof(System.String) as <type>System.String</type>
thanks a ton.