Table of Contents

SerializeToWriter Method

Definition

SerializeToWriter(XmlWriter, object, Type)

Serializes the specified source into an XML format.

public void SerializeToWriter(XmlWriter writer, object source, Type objectType)

Parameters

writer XmlWriter

The writer used in the serialization process.

source object

The object to serialize to XML format.

objectType Type

The type of the object to serialize.

Exceptions

ArgumentNullException

writer cannot be null -or- source cannot be null -or- objectType cannot be null.