[Mono-devel-list] Re: Xml serializer questions
ginga at kit.hi-ho.ne.jp
ginga at kit.hi-ho.ne.jp
Tue Mar 18 14:42:27 EST 2003
Hello,
> What purpose is XmlElementAttribute's Order property suposed
> to serve? It's marked as internal, and therefore cannot be used
> when describing a class' serialization rules (unless that class
> resides in the serialization library, no?).
Below is a comment I found in XmlSerializer.FillTypeTable:
<citation>
// Sort the attributes for the members according to their Order
// This is an extension to MS's Implementation and will be useful
// if our reflection does not return the same order of elements
// as MS .NET impl
</citation>
> Why does XmlSerializer forcibly call the writter's WriteStartDocument
> and WriteEndDocument? If we only called these methods when the
> writer's WriteState says we are not already in a document, we could
> serialize and object into an already open and used XmlTextWriter
> (MS does something like this).
Yeah, I think you're right. I fixed in cvs.
Hmm... we should dig some directories and add testcases.
Thanks,
Atsushi Eno
More information about the Mono-devel-list
mailing list