Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlSerializer::GenerateSerializer Method

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns an assembly that contains typed serializers.

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGenerateSerializer(array<Type^>^, array<XmlMapping^>^)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings.

System_CAPS_pubmethodSystem_CAPS_staticGenerateSerializer(array<Type^>^, array<XmlMapping^>^, CompilerParameters^)

This API supports the product infrastructure and is not intended to be used directly from your code. 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.

The XML Serializer Generator Tool (Sgen.exe) creates an XML serialization assembly for types in a specified assembly to improve the run-time performance of an XmlSerializer when it serializes or deserializes objects of the specified types. Use the GetXmlSerializerAssemblyName to return the name of such an assembly.

If you are distributing such an assembly as part of a client application that calls a Web service, you can apply the XmlSerializerAssemblyAttribute to the client type to specify the location and name of the assembly.

Return to top
Show:
© 2017 Microsoft