Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 2.55 KB

Assorted.Utils.Serialization.JsonSerializer.Deserialize.md

File metadata and controls

85 lines (53 loc) · 2.55 KB

JsonSerializer.Deserialize Method

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

Overload Description
Deserialize<T>(Stream) Deserializes the JSON data contained by the specified System.IO.Stream.
Deserialize<T>(string) Converts the JSON representation of an object to an instance of that object.

Deserialize<T>(Stream)

Deserializes the JSON 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 JSON 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 JSON representation of an object to an instance of that object.

Syntax

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

Type Parameters

T
The type of object, which is represented in JSON format.

Parameters

json: string
The JSON representation of the object.

Return Value

T
The deserialized object.

Exceptions

Exception Description
System.ArgumentNullException json is null.

See Also


This document is generated by DG.