XmlSerializer.Serialize Method (XmlWriter, Object, XmlSerializerNamespaces)
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
public void Serialize( XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces )
When the Serialize method is invoked, the public fields and read/write properties of an object are converted into XML. Methods, indexers, private fields, and read-only properties are not serialized. To serialize all fields and properties, both public and private, use the BinaryFormatter.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.