O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

BinaryFormatter

Synopsis

This formatter uses a binary format to serialize or deserialize a single object or an object graph.

public sealed class BinaryFormatter : System.Runtime.Remoting.Messaging.IRemotingFormatter, System.Runtime.Serialization.IFormatter {
// Public Constructors
   public method BinaryFormatter();  
   public method BinaryFormatter(
        System.Runtime.Serialization.ISurrogateSelector selector, 
        System.Runtime.Serialization.StreamingContext context);  
// Public Instance Properties
   public field FormatterAssemblyStyle AssemblyFormat{set; get; } 
   public field SerializationBinder Binder{set; get; }           
           // implements System.Runtime.Serialization.IFormatter
   public field StreamingContext Context{set; get; }             
           // implements System.Runtime.Serialization.IFormatter
   public field ISurrogateSelector SurrogateSelector{set; get; } 
           // implements System.Runtime.Serialization.IFormatter
   public field FormatterTypeStyle TypeFormat{set; get; } 
// Public Instance Methods
   public method object Deserialize(                            
        System.IO.Stream serializationStream);  
           // implements System.Runtime.Serialization.IFormatter
   public method object Deserialize(                            
        System.IO.Stream serializationStream, 
        System.Runtime.Remoting.Messaging.HeaderHandler handler);  
           // implements System.Runtime.Remoting.Messaging.IRemotingFormatter
   public method object DeserializeMethodResponse(
        System.IO.Stream serializationStream, 
        System.Runtime.Remoting.Messaging.HeaderHandler handler, 
        System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required