Discussion on:

3
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
I think this article is a good starting point for beginners to understand how and when to use serialization. I would think, however, that it might also prove to be helpful if you cover why you would use serialization. Just a suggestion...

I think it is important to point out that you do not have to have the serialization attribute in order to serialize a class using Xml Serialization (at least in VB.Net you don't).

While it is good practice to do so and helps if you ever have to leave code for another developer, you can short circuit the serialization simply by calling the Serialize or Deserialize methods in the XmlSerializer object.
This is a nice article. I always wanted to learn about serialization. It would be great If someone could post a couple of sample scenarios.
Thanks.. It helps..

Could we also have some information to
describe the serialization of objects that
inherits abstract classes and those which
have private fields..

When do we say that a class is Serializable?

Thanks
-PS2
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.