Serialization

884 views

Published on

In computer science, in the context of data storage and transmission, serialization, is the process of converting a data structure or object state into a format that can be stored (Wiki)

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
884
On SlideShare
0
From Embeds
0
Number of Embeds
294
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Serialization

  1. 1. SerializationMelick R. Baranasooriyahttp://melick-rajee.blogspot.com/
  2. 2. Serialization ? Converting to bytes Can Store  Memory  Database  File Save the state Recreate when needed Reverse process -> Deserialization
  3. 3. Serialization ? .. File Objects Bytes Memory Database
  4. 4. When to serialize Save Sate of a object Recreate when needed Store for Data exchange  Sending to remote application  Passing through firewall  Avoid recreating objects by passing values
  5. 5. Serialization Types Binaryserialization XML serialization SOAP Serialization Can be done  Basic Serialization  Custom Serialization
  6. 6. Simple XML Serialization Create a Object Serialize Get serialized stream [XML, String, Bytes] Desterilized
  7. 7. Serialization ..
  8. 8. Deserialization ..
  9. 9. Serialization Attributes [XmlElement("Customer Name")] [XmlIgnore]
  10. 10. Thank You!

×