共用方式為


IDeserializableObject.ToObject Method

Definition

Overloads

ToObject(Type)

Deserializes and returns the object in the underlying stream.

ToObject<T>()

Same as ToObject(Type).

ToObject(Type)

Deserializes and returns the object in the underlying stream.

public:
 System::Object ^ ToObject(Type ^ type);
public object ToObject (Type type);
abstract member ToObject : Type -> obj
Public Function ToObject (type As Type) As Object

Parameters

type
Type

The type of the object in the underlying stream.

Returns

The deserialized object.

Exceptions

If the underlying object was formatted in JSON but no type is specified.

Applies to

ToObject<T>()

Same as ToObject(Type).

public:
generic <typename T>
 T ToObject();
public T ToObject<T> ();
abstract member ToObject : unit -> 'T
Public Function ToObject(Of T) () As T

Type Parameters

T

Returns

T

Applies to