XmlSerializer
Serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.
protected XmlSerializer()
Initializes a new instance of the XmlSerializer class.
public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace)
Initializes a new instance of the XmlSerializer class that can serialize objects of type Object into XML document instances, and deserialize XML document instances into objects of type Object. Each object to be serialized can itself contain instances of classes, which this overload overrides with other classes. This overload also specifies the default namespace for all the XML elements and the class to use as the XML root element.
Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize an XML document into object of the specified type. It also specifies the class to use as the XML root element.
Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into object of a specified type. If a property or field returns an array, the extraTypes parameter specifies objects that can be inserted into the array.
Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type. Each object to be serialized can itself contain instances of classes, which this overload can override with other classes.
Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type.
Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type. Specifies the default namespace for all the XML elements.
Returns an array of XmlSerializer objects created from an array of types.
Gets a value that indicates whether this XmlSerializer can deserialize a specified XML document.
Deserializes the XML document contained by the specified Stream.
Deserializes the XML document contained by the specified TextReader.
Deserializes the XML document contained by the specified XmlReader.
Serializes the specified Object and writes the XML document to a file using the specified TextWriter.
Serializes the specified Object and writes the XML document to a file using the specified TextWriter and references the specified namespaces.
Serializes the specified Object and writes the XML document to a file using the specified Streamthat references the specified namespaces.
Serializes the specified Object and writes the XML document to a file using the specified XmlWriter.
Serializes the specified Object and writes the XML document to a file using the specified XmlWriter and references the specified namespaces.