|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
advantages of serializationThis is a discussion on advantages of serialization within the .Net Development forums. Topic: Hi all, Can Any One explain me with example what is the advantages of serialization? I will highly appreciate your ... |
![]() |
![]() |
|
![]() |
LinkBack | Thread Tools | ![]() | Display Modes | ![]() |
|
|
#2 (permalink) |
|
Are you looking for a code example or a real world example?
Either are useful. Here's a good real word example.I've created a small desktop app to manage a golfer's handicap. Since I do not want to use webservices to send data to my storage facility and I also don't have access to a database on the client's machine, I use XML. XML (or Binary) serialization allows you to store and and retrieve data easily by "serializing" and/or "deserializing" an object (that's marked as [Serializable]). If using XML, you can specify properties as node elements or attribute elements. Essentially it's allowing you to use XML as a text database. And you basically have full control over the XML structure. Sure, you could use XMLTextWriter, but why when you can use serialization! Let me know if you want a code example or any more info. I've use serialization alot and imo, it rocks! |
|
|
|
|