ISerializable interface - A single method, named GetObjectData, which is responsible for storing object fields during the serialization process. To do this, you just need to populate a passed SerializationInfo object.
XML Serialization –
- Seralizes only Public fields and properties of an object, or the parameters and return values of methods, into an XML stream.
- Smaller in Size than Binary
Bianry Serialization –
- Seralizes the public and private fields of the object and the name of the class, including the assembly containing the class, are converted to a stream of bytes, which is then written to a data stream
- Larger in Size than XML
Thanks & Regards,
Arun Manglick || Senior Tech Lead
No comments:
Post a Comment