Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Implements: ISerializer
Inheritance: object→
XmlSerializer
Serializes and deserializes objects into and from XML documents.
public class XmlSerializer : ISerializer
Constructor | Description |
---|---|
XmlSerializer() | Initializes a new instance of XmlSerializer class without a name-space. |
XmlSerializer(XmlSerializerNamespaces) | Initializes a new instance of XmlSerializer class with the specified name-spaces. |
Field | Description |
---|---|
DefaultNamespaces | The default name-space for XML serialization, which is none. |
Property | Description |
---|---|
Namespaces | Gets the name-spaces being used for XML serialization. |
Method | Description |
---|---|
Deserialize<T>(Stream) | Deserializes the XML document contained by the specified System.IO.Stream . |
Deserialize<T>(string) | Converts the XML representation of an object to an instance of that object. |
Deserialize<T>(TextReader) | Deserializes the XML document contained by the specified System.IO.TextReader . |
GetInternalSerializer<T>() | Creates an instance of System.Xml.Serialization.XmlSerializer class for the specified type. |
Serialize<T>(T) | Converts an object to its XML representation. |
Serialize<T>(T, Stream) | Serializes a given object and writes the XML document into the specified System.IO.Stream . |
Serialize<T>(TextWriter, T) | Serializes a given object and writes the XML document into the specified System.IO.TextWriter . |
Any public member of this type, either static or instance, is thread-safe.
This document is generated by DG.