March 2002
Intermediate to advanced
864 pages
31h 8m
English
IFormatter
This interface defines the basic serialization and deserialization
functionality for a formatter. Its three properties determine the
SerializationBinder,
StreamingContext, and
SurrogateSelector of the formatter. It also
defines the two basic methods of Serialize() and
Deserialize().
public interface IFormatter { // Public Instance Properties public field SerializationBinder Binder{set; get; } public field StreamingContext Context{set; get; } public field ISurrogateSelector SurrogateSelector{set; get; } // Public Instance Methods public method object Deserialize( System.IO.Stream serializationStream); public method void Serialize( System.IO.Stream serializationStream, object graph); }
Formatter, System.Runtime.Serialization.Formatters.Binary.BinaryFormatter, System.Runtime.Serialization.Formatters.Soap.SoapFormatter