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 Property Binder As SerializationBinder  
   Public Property Context As StreamingContext  
   Public Property SurrogateSelector As ISurrogateSelector  
' Public Instance Methods
   Public Function Deserialize(
        ByVal serializationStream As System.IO.Stream) As Object  
   Public Sub Serialize(
        ByVal serializationStream As System.IO.Stream, 
        ByVal graph As Object) 
End Interface

Implemented By

Formatter, System.Runtime.Serialization.Formatters.Binary.BinaryFormatter, System.Runtime.Serialization.Formatters.Soap.SoapFormatter

Get VB.NET Core Classes in a Nutshell 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.