Compartilhar via


DataConverter.Deserialize Method

Definition

Overloads

Deserialize(String, Type)

Deserializes data into an object of type targetType.

Deserialize<T>(String)

Deserializes data into an object of type T.

Deserialize(String, Type)

Deserializes data into an object of type targetType.

public abstract object? Deserialize (string? data, Type targetType);
abstract member Deserialize : string * Type -> obj
Public MustOverride Function Deserialize (data As String, targetType As Type) As Object

Parameters

data
String

The text data to be deserialized.

targetType
Type

The type to deserialize the text data into.

Returns

Returns a deserialized object or null if the input is null.

Applies to

Deserialize<T>(String)

Deserializes data into an object of type T.

public virtual T? Deserialize<T> (string? data);
abstract member Deserialize : string -> 'T
override this.Deserialize : string -> 'T
Public Overridable Function Deserialize(Of T) (data As String) As T

Type Parameters

T

The type to deserialize to.

Parameters

data
String

The text data to be deserialized.

Returns

T

Returns a deserialized object or null if the input is null.

Applies to