XmlSerializer.Serialize Method (TextWriter, Object)
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
The Serialize method converts the public fields and read/write properties of an object into XML. It does not convert methods, indexers, private fields, or read-only properties. To serialize all an object's 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.