By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,519 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,519 IT Pros & Developers. It's quick & easy.

Serializing System.Version type

P: n/a
Hi,

Why when System.Version type is serialized, none of its Major, Minor, etc
properties are serialized?

I get <MyVersion /> when i serialize an instance of System.Version using
XmlSerializer!
Thanks in advance
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
XML Serializer won't serialize ReadOnly properties. This is because on the
other end, it needs to put the values back into the property using the
property mutator (Set).
The binary serializer, on the other hand, works by extracting and setting
the values directly to the object's fields, so it would be able to serialize
this object properly.

-Rob Teixeira [MVP]

"Soheil" <so*******@yahoo.com> wrote in message
news:e7**************@TK2MSFTNGP12.phx.gbl...
Hi,

Why when System.Version type is serialized, none of its Major, Minor, etc
properties are serialized?

I get <MyVersion /> when i serialize an instance of System.Version using
XmlSerializer!
Thanks in advance

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.