Reputation: 691
Please share your view of System.Runtime.Serialization.
My questions and doubts are:
Thanks in advance.
Upvotes: 0
Views: 103
Reputation: 6330
Serialization is a extremely wide topic and you are not asking a single question.
i would suggest start reading msdn library ,it would give you a good start-
http://msdn.microsoft.com/en-us/library/7ay27kt9(v=vs.100).aspx
http://msdn.microsoft.com/en-us/magazine/cc301761.aspx
Upvotes: 1
Reputation: 584
1) Not all members need to be serializable you can tag them with [NonSerialized()]
2, 3) Static won't work, see serialize-a-static-class
4) My experience with serialization is that any change in the serialized object will break the deserialization.
UPDATE: The comment from Jon Skeet (thats me learning something new) does handle 4). But pay attention to the botom of the site. You have to be very careful about changing attributes Version Tolerant Serialization
Upvotes: 0