Deserialize Method
Collapse the table of content
Expand the table of content

IFormatter.Deserialize Method (Stream)

 

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

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

object Deserialize(
	Stream serializationStream
)

Parameters

serializationStream
Type: System.IO.Stream

The stream that contains the data to deserialize.

Return Value

Type: System.Object

The top object of the deserialized graph.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft