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.
To build the sample using the Command Prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories for the sample.
Type msbuild CustomOrder.sln at the command line.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories for the sample.
Double-click the icon for the CustomOrder.sln to open the file in Visual Studio.
In the Build menu, select Build Solution.
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
Other Resources
Binary Serialization
Serialization
SOAP Service
XML and SOAP Serialization