G
Guest
Hey,
I have made a method that would take any object o and an array of
extraTypes to construct a XmlSerializer object then call .Serialize(stream,
object)... When I have this called within the same method as the type it
works fine but when I am passing this type and the extra types array Its got
the subtypes but its not generating the XML.
I am passing in ob.GetType(), and xtraTypes as the constructor parameters
to XmlSerializer(..)
According to the debugger it has the type, the data and subtypes ok, its
just not serializing it to XML properely.
Is this odd behaviour of the Serializer?
I have made a method that would take any object o and an array of
extraTypes to construct a XmlSerializer object then call .Serialize(stream,
object)... When I have this called within the same method as the type it
works fine but when I am passing this type and the extra types array Its got
the subtypes but its not generating the XML.
I am passing in ob.GetType(), and xtraTypes as the constructor parameters
to XmlSerializer(..)
According to the debugger it has the type, the data and subtypes ok, its
just not serializing it to XML properely.
Is this odd behaviour of the Serializer?