Deserialize Method
Definition
Deserialize<TValue>(Stream)
Deserializes the specified data into an object of TValue.
TValue Deserialize<TValue>(Stream data)
Parameters
dataStreamThe object from which to deserialize the object graph.
Returns
- TValue
An object of
TValue.
Type Parameters
TValueThe type of the object to return.
Deserialize(Stream, Type)
Deserializes the specified data into an object of returnType.
object Deserialize(Stream data, Type returnType)
Parameters
dataStreamThe string from which to deserialize the object graph.
returnTypeTypeThe type of the deserialized object.
Returns
- object
An object of
returnType.