Table of Contents

SerializeObject Method

Definition

SerializeObject(object)

Serializes the specified source to an object of Stream.

public static Stream SerializeObject(object source)

Parameters

source object

The object to serialize to Stream format.

Returns

Stream

A Stream of the serialized source.

SerializeObject(object, Action<TOptions>)

Serializes the specified source to an object of Stream.

public static Stream SerializeObject(object source, Action<TOptions> setup)

Parameters

source object

The object to serialize to Stream format.

setup Action<TOptions>

The TOptions which may be configured.

Returns

Stream

A Stream of the serialized source.

SerializeObject(object, Type)

Serializes the specified source to an object of Stream.

public static Stream SerializeObject(object source, Type objectType)

Parameters

source object

The object to serialize to Stream format.

objectType Type

The type of the object to serialize.

Returns

Stream

A Stream of the serialized source.

SerializeObject(object, Type, Action<TOptions>)

Serializes the specified source to an object of Stream.

public static Stream SerializeObject(object source, Type objectType, Action<TOptions> setup)

Parameters

source object

The object to serialize to Stream format.

objectType Type

The type of the object to serialize.

setup Action<TOptions>

The TOptions which may be configured.

Returns

Stream

A Stream of the serialized source.

SerializeObject(object, TOptions)

Serializes the specified source to an object of Stream.

public static Stream SerializeObject(object source, TOptions options)

Parameters

source object

The object to serialize to Stream format.

options TOptions

The configured TOptions.

Returns

Stream

A Stream of the serialized source.

SerializeObject(object, Type, TOptions)

Serializes the specified source to an object of Stream.

public static Stream SerializeObject(object source, Type objectType, TOptions options)

Parameters

source object

The object to serialize to Stream format.

objectType Type

The type of the object to serialize.

options TOptions

The configured TOptions.

Returns

Stream

A Stream of the serialized source.