次の方法で共有


DataContractUtils.Serialize<T>(T) Method

Definition

Serializes the supplied object to the string.

public static string Serialize<T> (T obj);
static member Serialize : 'T -> string
Public Shared Function Serialize(Of T) (obj As T) As String

Type Parameters

T

The object type.

Parameters

obj
T

Object to serialize

Returns

Serialized string.

Applies to