Table of Contents

Serialize Method

Definition

Serialize(object)

Serializes the specified source to an object of TFormat.

public TFormat Serialize(object source)

Parameters

source object

The object to serialize to a given format.

Returns

TFormat

An object of the serialized source.

Serialize(object, Type)

Serializes the object of this instance to an object of TFormat.

public abstract TFormat Serialize(object source, Type objectType)

Parameters

source object

The object to serialize to a given format.

objectType Type

The type of the object to serialize.

Returns

TFormat

An object of the serialized source.