Serialization
Serialization
Soap Serialization (Save your object data into binary format; mainly
used in network related communication).
XML SERIALIZATION :
ATTRIBUTES :
using System.Xml.Serialization;
BINARY SERIALIZATION :
usingSystem.Runtime.Serialization.Formatters.Binary;
BinaryFormatterformatter =newBinaryFormatter();
It's the fastest serialization method because it does not have the overhead of generating
an XML document during the serialization process.
The resulting binary data is more compact than an XML string, so it takes up less storage
space and can be transmitted quickly.