How do you implement a custom serialization?

How do you implement a custom serialization?

CUSTOM SERIALIZATION implementation
public class A: ISerializable
{
    private int a;
    protected A(SerializationInfo si, StreamingContext sc)
    {
        this.a = serializationInfo.GetInt32("a");
    }
    public void ISerializable.GetObjectData(SerializationInfo si, StreamingContext sc)
    {
        si.AddValue("a", this.a);
    }
}
Difference between the SoapFormatter and the XmlSerializer
SoapFormatter and XmlSerializer - SOAP formatter will actually take the field values of an object and store all of that information in the stream passed...
How can I optimize the serialization process?
How can I optimize the serialization process? - The first call to a Web Service takes long because XmlSerializer generate an assembly optimized for each type in memory....
How do we access crystal reports in .NET? - .NET crystal reports
DOT.NET - When crystal reports are integrated with .NET, data can be accessed using ODBC drivers, ADO drivers, database files like excel, xml etc...
Post your comment