Edit

Share via


IObjectSerializer.Serialize<T>(T) Method

Definition

Serialize an object into a string. It is recommended to use strings as the final format for objects if you plan to use the SaveFileAsync<T>(String, T) method.

public string Serialize<T> (T value);
public object Serialize<T> (T value);
abstract member Serialize : 'T -> string
abstract member Serialize : 'T -> obj
Public Function Serialize(Of T) (value As T) As String
Public Function Serialize(Of T) (value As T) As Object

Type Parameters

T

The type of the object to serialize.

Parameters

value
T

The object to serialize.

Returns

The serialized object.

Applies to