System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
Serializes and deserializes an object, or an entire graph of connected objects, in binary format.
Gets or sets the behavior of the deserializer with regards to finding and loading assemblies.
(Insecure) Gets or sets an object of type SerializationBinder that controls the binding of a serialized object to a type.
Gets or sets the StreamingContext for this formatter.
Gets or sets the TypeFilterLevel of automatic deserialization the BinaryFormatter performs.
Gets or sets a ISurrogateSelector that controls type substitution during serialization and deserialization.
Gets or sets the format in which type descriptions are laid out in the serialized stream.
public BinaryFormatter()
Initializes a new instance of the BinaryFormatter class with default values.
Initializes a new instance of the BinaryFormatter class with a given surrogate selector and streaming context.
Deserializes the specified stream into an object graph.
Serializes the object, or graph of objects with the specified top (root), to the given stream.