Freigeben über


Custom Serialization Order With XmlSerializer

This sample shows how to control the order of serialized and deserialized elements for XML serialization.

Review comments in the source code and build.proj files for more information on serialization.

For information about using the samples, see the following topics:

To build the sample using the Command Prompt

  1. Open the Command Prompt window and navigate to one of the language-specific subdirectories for the sample.

  2. Type msbuild CustomOrder.sln at the command line.

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories for the sample.

  2. Double-click the icon for the CustomOrder.sln to open the file in Visual Studio.

  3. In the Build menu, select Build Solution.

  4. The sample application is built in the default \bin or \bin\Debug subdirectory.

See Also

Reference

System.Runtime.Serialization namespace
System.Xml.Serialization namespace

Concepts

Basic Serialization
Controlling XML Serialization Using Attributes
Introducing XML Serialization
SOAP Service

Other Resources

Binary Serialization
Serialization
XML and SOAP Serialization