Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 2.63 KB

Assorted.Utils.Serialization.BinarySerializer.Deserialize.md

File metadata and controls

85 lines (53 loc) · 2.63 KB

BinarySerializer.Deserialize Method

Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0

Overload Description
Deserialize<T>(Stream) Deserializes the binary data contained by the specified System.IO.Stream.
Deserialize<T>(string) Converts the binary representation of an object, provided in base-64 format, to an instance of that object.

Deserialize<T>(Stream)

Deserializes the binary data contained by the specified System.IO.Stream.

Syntax

public virtual T Deserialize<T>(Stream stream)

Type Parameters

T
The type of object to be deserialized.

Parameters

stream: Stream
A System.IO.Stream object to read the binary representation of the object from.

Return Value

T
The deserialized object.

Exceptions

Exception Description
System.ArgumentNullException stream is null.

See Also

Deserialize<T>(string)

Converts the binary representation of an object, provided in base-64 format, to an instance of that object.

Syntax

public sealed virtual T Deserialize<T>(string base64)

Type Parameters

T
The type of object to be deserialized.

Parameters

base64: string
The binary representation of the object in base-64 format.

Return Value

T
The deserialized object.

Exceptions

Exception Description
System.ArgumentNullException base64 is null.

See Also


This document is generated by DG.