Click or drag to resize
XmlSerializer Class
Serializes and deserializes objects into and from XML documents. The System.Xml.Serialization.XmlSerializer enables you to control how objects are encoded into XML.
Inheritance Hierarchy
SystemObject
  System.Xml.SerializationXmlSerializer

Namespace: System.Xml.Serialization
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
public class XmlSerializer

The XmlSerializer type exposes the following members.

Constructors
  NameDescription
Protected methodXmlSerializer
Initializes a new instance of the System.Xml.Serialization.XmlSerializer class.
Public methodXmlSerializer(Type)
Initializes a new instance of the System.Xml.Serialization.XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type.
Top
Methods
  NameDescription
Public methodCanDeserialize
Gets a value that indicates whether this System.Xml.Serialization.XmlSerializer can deserialize a specified XML document.
Protected methodCreateReader
Returns an object used to read the XML document to be serialized.
Protected methodCreateWriter
When overridden in a derived class, returns a writer used to serialize the object.
Public methodDeserialize(Stream)
Deserializes the XML document contained by the specified System.IO.Stream.
Public methodDeserialize(XmlReader)
Deserializes the XML document contained by the specified System.xml.XmlReader.
Protected methodDeserialize(XmlSerializationReader)
Deserializes the XML document contained by the specified System.Xml.Serialization.XmlSerializationReader.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSerialize(Object, XmlSerializationWriter)
Serializes the specified System.Object and writes the XML document to a file using the specified System.Xml.Serialization.XmlSerializationWriter.
Public methodSerialize(Stream, Object)
Serializes the specified System.Object and writes the XML document to a file using the specified System.IO.Stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also