Name
IFormatter
Synopsis
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 SerializationBinder Binder{set; get; } public StreamingContext Context{set; get; } public ISurrogateSelector SurrogateSelector{set; get; } // Public Instance Methods public object Deserialize(System.IO.StreamserializationStream
); public void Serialize(System.IO.StreamserializationStream
, objectgraph
); }
Implemented By
Formatter
,
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
,
System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.