다음을 통해 공유


JsonExtensions.FromJson Method

Definition

Overloads

FromJson<T>(Stream)

Deserialize object from a JSON stream.

FromJson<T>(String)

Deserialize object from the JSON.

FromJson<T>(Stream)

Deserialize object from a JSON stream.

public static T FromJson<T> (this System.IO.Stream stream);
static member FromJson : System.IO.Stream -> 'T
<Extension()>
Public Function FromJson(Of T) (stream As Stream) As T

Type Parameters

T

Type of object

Parameters

stream
Stream

A Stream that contains a JSON representation of object

Returns

T

Applies to

FromJson<T>(String)

Deserialize object from the JSON.

public static T FromJson<T> (this string json);
static member FromJson : string -> 'T
<Extension()>
Public Function FromJson(Of T) (json As String) As T

Type Parameters

T

Type of object

Parameters

json
String

JSON representation of object

Returns

T

Applies to