System.Xml.Serialization.XmlSerializer.GenerateSerializer Method

Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings and compiler settings and options.

Syntax

public static System.Reflection.Assembly GenerateSerializer (Type[] types, XmlMapping[] mappings, System.CodeDom.Compiler.CompilerParameters parameters)

Parameters

types
An array of type Type that contains objects used to serialize and deserialize data.
mappings
An array of type System.Xml.Serialization.XmlMapping that maps the XML data to the type data.
parameters
An instance of the System.CodeDom.Compiler.CompilerParameters class that represents the parameters used to invoke a compiler.

Returns

An System.Reflection.Assembly that contains special versions of the System.Xml.Serialization.XmlSerializer.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0