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. |
Deserializes the JSON data contained by the specified System.IO.Stream
.
public virtual T Deserialize<T>(Stream stream)
T
The type of object to be deserialized.
stream
: Stream
A System.IO.Stream
object to read the JSON representation of the object from.
T
The deserialized object.
Exception | Description |
---|---|
System.ArgumentNullException | stream is null . |
Converts the JSON representation of an object to an instance of that object.
public sealed virtual T Deserialize<T>(string json)
T
The type of object, which is represented in JSON format.
json
: string
The JSON representation of the object.
T
The deserialized object.
Exception | Description |
---|---|
System.ArgumentNullException | json is null . |
This document is generated by DG.