DataConverter.Deserialize 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
Deserialize(String, Type) |
Deserializes |
Deserialize<T>(String) |
Deserializes |
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
Returns a deserialized object or null
if the input is null.