IFormatter.Deserialize(Stream) IFormatter.Deserialize(Stream) IFormatter.Deserialize(Stream) IFormatter.Deserialize(Stream) Method

Definition

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

public:
 System::Object ^ Deserialize(System::IO::Stream ^ serializationStream);
public object Deserialize (System.IO.Stream serializationStream);
abstract member Deserialize : System.IO.Stream -> obj
Public Function Deserialize (serializationStream As Stream) As Object

Parameters

serializationStream
Stream Stream Stream Stream

The stream that contains the data to deserialize.

Returns

The top object of the deserialized graph.

Remarks

The Deserialize 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.

Applies to

See also