XmlSerializer Methods
.NET Framework 4
The XmlSerializer type exposes the following members.
| Name | Description | |
|---|---|---|
|
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(Stream) | Deserializes the XML document contained by the specified Stream. |
|
Deserialize(TextReader) | Deserializes the XML document contained by the specified TextReader. |
|
Deserialize(XmlReader) | Deserializes the XML document contained by the specified XmlReader. |
|
Deserialize(XmlSerializationReader) | Infrastructure. Deserializes the XML document contained by the specified XmlSerializationReader. |
|
Deserialize(XmlReader, String) | Deserializes the XML document contained by the specified XmlReader and encoding style. |
|
Deserialize(XmlReader, XmlDeserializationEvents) | Deserializes an XML document contained by the specified XmlReader and allows the overriding of events that occur during deserialization. |
|
Deserialize(XmlReader, String, XmlDeserializationEvents) | Infrastructure. Deserializes the object using the data contained by the specified XmlReader. |
|
Equals(Object) | 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(XmlMapping[]) | Infrastructure. Returns an array of XmlSerializer objects created from an array of XmlTypeMapping objects. |
|
FromMappings(XmlMapping[], Evidence) | Obsolete. Returns an instance of the XmlSerializer class created from mappings of one XML type to another. |
|
FromMappings(XmlMapping[], Type) | Infrastructure. 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(Type[], XmlMapping[]) | Infrastructure. Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings. |
|
GenerateSerializer(Type[], XmlMapping[], CompilerParameters) | Infrastructure. Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings and compiler settings and options. |
|
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(Type) | Returns the name of the assembly that contains one or more versions of the XmlSerializer especially created to serialize or deserialize the specified type. |
|
GetXmlSerializerAssemblyName(Type, String) | Returns the name of the assembly that contains the serializer for the specified type in the specified namespace. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Serialize(Object, XmlSerializationWriter) | Infrastructure. Serializes the specified Object and writes the XML document to a file using the specified XmlSerializationWriter. |
|
Serialize(Stream, Object) | Serializes the specified Object and writes the XML document to a file using the specified Stream. |
|
Serialize(TextWriter, Object) | Serializes the specified Object and writes the XML document to a file using the specified TextWriter. |
|
Serialize(XmlWriter, Object) | Serializes the specified Object and writes the XML document to a file using the specified XmlWriter. |
|
Serialize(Stream, Object, XmlSerializerNamespaces) | Serializes the specified Object and writes the XML document to a file using the specified Streamthat references the specified namespaces. |
|
Serialize(TextWriter, Object, XmlSerializerNamespaces) | Serializes the specified Object and writes the XML document to a file using the specified TextWriter and references the specified namespaces. |
|
Serialize(XmlWriter, Object, XmlSerializerNamespaces) | Serializes the specified Object and writes the XML document to a file using the specified XmlWriter and references the specified namespaces. |
|
Serialize(XmlWriter, Object, XmlSerializerNamespaces, String) | Serializes the specified object and writes the XML document to a file using the specified XmlWriter and references the specified namespaces and encoding style. |
|
Serialize(XmlWriter, Object, XmlSerializerNamespaces, String, String) | Serializes the specified Object and writes the XML document to a file using the specified XmlWriter, XML namespaces, and encoding. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |