ISerializer.DeserializeObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeserializeObject<T>(Stream) |
Deserializes the stream to an object of the specified type. |
DeserializeObject<T>(String) |
Deserializes the JSON string to an object of the specified type. |
DeserializeObject<T>(Stream)
Deserializes the stream to an object of the specified type.
public T DeserializeObject<T> (System.IO.Stream stream);
abstract member DeserializeObject : System.IO.Stream -> 'T
Public Function DeserializeObject(Of T) (stream As Stream) As T
Type Parameters
- T
The deserialization type.
Parameters
- stream
- Stream
The stream to deserialize.
Returns
The deserialized object.
Applies to
DeserializeObject<T>(String)
Deserializes the JSON string to an object of the specified type.
public T DeserializeObject<T> (string inputString);
abstract member DeserializeObject : string -> 'T
Public Function DeserializeObject(Of T) (inputString As String) As T
Type Parameters
- T
The deserialization type.
Parameters
- inputString
- String
The JSON string to deserialize.
Returns
The deserialized object.