This documentation is archived and is not being maintained.
Serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.
The XmlSerializer type exposes the following members.
|CanDeserialize||Gets a value that indicates whether this XmlSerializer can deserialize a specified XML document.|
|CreateReader||Infrastructure. Returns an object used to read the XML document to be serialized.|
|CreateWriter||Infrastructure. When overridden in a derived class, returns a writer used to serialize the object.|
|Deserialize||Overloaded. Deserializes an XML document.|
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|FromMappings||Infrastructure. Overloaded. Returns an instance of the XmlSerializer class from the specified mappings.|
|FromTypes||Returns an array of XmlSerializer objects created from an array of types.|
|GenerateSerializer||Infrastructure. Overloaded. Returns an assembly that contains typed serializers.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|GetXmlSerializerAssemblyName||Infrastructure. Overloaded. Returns the name of the assembly that contains one or more versions of the XmlSerializer especially created to serialize or deserialize specific types.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Serialize||Overloaded. Serializes an object into an XML document.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|UnknownAttribute||Occurs when the XmlSerializer encounters an XML attribute of unknown type during deserialization.|
|UnknownElement||Occurs when the XmlSerializer encounters an XML element of unknown type during deserialization.|
|UnknownNode||Occurs when the XmlSerializer encounters an XML node of unknown type during deserialization.|
|UnreferencedObject||Occurs during deserialization of a SOAP-encoded XML stream, when the XmlSerializer encounters a recognized type that is not used or is unreferenced.|