Runtime. Serialization Namespace
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains classes that can be used for serializing and deserializing objects. Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes for either storage or transmission to another location. Deserialization is the process of taking in stored information and recreating objects from it.
When applied to a collection type, enables custom specification of the collection item elements. This attribute can be applied only to types that are recognized by the DataContractSerializer as valid, serializable collections.
Specifies the CLR namespace and XML namespace of the data contract.
Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the DataContractSerializer. To make their type serializable, type authors must define a data contract for their type.
Provides a mechanism for dynamically mapping types to and from
Serializes and deserializes an instance of a type into an XML stream or document using a supplied data contract. This class cannot be inherited.
Specifies data contract serializer settings.
When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the DataContractSerializer.
Specifies date-time format options.
Specifies that the field is an enumeration member and should be serialized.
Represents the options that can be set for an XsdDataContractExporter.
Stores data from a versioned data contract that has been extended by adding new members.
Provides base functionality for the common language runtime serialization formatters.
Provides static methods to aid with the implementation of a Formatter for serialization. This class cannot be inherited.
When applied to the member of a type, specifies that the member is not part of a data contract and is not serialized.
Represents the options that can be set on an XsdDataContractImporter.
Specifies types that should be recognized by the DataContractSerializer when serializing or deserializing a given type.
Serializes and deserializes an instance of a type into XML stream or document using the supplied .NET Framework types. This class cannot be inherited.
Generates IDs for objects.
Keeps track of objects as they are deserialized.
When applied to a method, specifies that the method is called immediately after deserialization of an object in an object graph. The order of deserialization relative to other objects in the graph is non-deterministic.
When applied to a method, specifies that the method is called during deserialization of an object in an object graph. The order of deserialization relative to other objects in the graph is non-deterministic.
When applied to a method, specifies that the method is called after serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic.
When applied to a method, specifies that the method is called during serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic.
Provides data for the SerializeObjectState event.
Allows users to control class loading and mandate what class to load.
The exception thrown when an error occurs during serialization or deserialization.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
Provides a formatter-friendly mechanism for parsing the data in SerializationInfo. This class cannot be inherited.
Manages serialization processes at run time. This class cannot be inherited.
Assists formatters in selection of the serialization surrogate to delegate the serialization or deserialization process to.
Provides the base class used to serialize objects as XML streams or documents. This class is abstract.
Contains methods for reading and writing XML.
When given a class representing a data contract, and metadata representing a member of the contract, produces an XPath query for the member.
Allows the transformation of a set of .NET types that are used in data contracts into an XML schema file (.xsd).
Allows the transformation of a set of XML schema files (.xsd) into common language runtime (CLR) types.
Holds the value, Type, and name of a serialized object.
Describes the source and destination of a given serialized stream, and provides an additional caller-defined context.
Provides the methods needed to substitute one type for another by the DataContractSerializer during serialization, deserialization, and export and import of XML schema documents (XSD).
Indicates that a class is to be notified when deserialization of the entire object graph has been completed. This interface is not called when you deserialize with XmlSerializer.
Provides functionality for formatting serialized objects.
Indicates that the current interface implementer is a reference to another object.
Enables serialization of custom exception data in security-transparent code.
Allows an object to control its own serialization and deserialization through binary and XML serialization.
Implements a serialization surrogate selector that allows one object to perform serialization and deserialization of another.
Provides the methods needed to construct a serialization surrogate that extends the DataContractSerializer. A serialization surrogate is used during serialization and deserialization to substitute one type for another.
Provides the methods needed to substitute one type for another by DataContractSerializer during export and import of XML schema documents (XSD). This interface builds upon ISerializationSurrogateProvider.
Indicates a serialization surrogate selector class.
Specifies how often to emit type information.
Defines a set of flags that specifies the source or destination context for the stream during serialization.
The ISerializable interface provides a way for classes to control their own serialization behavior. Classes in the System.Runtime.Serialization.Formatters namespace control the actual formatting of various data types encapsulated in the serialized objects.
Formatters that serialize and deserialize objects to and from a particular format can be found in the System.Runtime.Serialization.Formatters namespace.