共用方式為


ISerializer.DeserializeObject Method

Definition

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

T

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

T

The deserialized object.

Applies to