Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 3.3 KB

Assorted.Utils.Serialization.XmlSerializer.md

File metadata and controls

57 lines (39 loc) · 3.3 KB

XmlSerializer Class

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.

Syntax

public class XmlSerializer : ISerializer

Constructors

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.

Fields

Field Description
DefaultNamespaces The default name-space for XML serialization, which is none.

Properties

Property Description
Namespaces Gets the name-spaces being used for XML serialization.

Methods

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.

Thread Safety

Any public member of this type, either static or instance, is thread-safe.

See Also


This document is generated by DG.