Table of Contents

Serialize Method

Definition

Serialize(object, Type)

Serializes the specified source to an object of Stream.

public override Stream Serialize(object source, Type objectType)

Parameters

source object

The object to serialize to JSON format.

objectType Type

The type of the object to serialize.

Returns

Stream

A string of the serialized source.