We need to serialize the object, if we want to pass object from one computer/application domain to another. or if we want to convert an object into stream of bytes that can be persisted or transported.
Namespace for serialization is System.Runtime.Serialization.
The ISerializable interface allows you to make any class Serializable.
NET framework provides 2 serializing method.
1.Binary Serialization
2.XML Serialization
No comments:
Post a Comment