System.Runtime.Serialization.IFormatter.Deserialize Method

Deserializes the data on the provided stream and reconstitutes the graph of objects.

Syntax

public object Deserialize (System.IO.Stream serializationStream)

Parameters

serializationStream
The stream that contains the data to deserialize.

Returns

The top object of the deserialized graph.

Remarks

The IFormatter.Deserialize(System.IO.Stream) method reads graph information from the stream and reconstructs a clone of the original graph. The topology of the graph is preserved.

The deserialization process allocates an empty object of the appropriate type and repopulates its fields from the data transmitted in the serializationStream stream. It is important to note that no constructor is ever called on the object during deserialization.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0