
Serialization - .NET | Microsoft Learn
Oct 25, 2023 · This article provides information about .NET serialization technologies, including binary serialization, XML and SOAP serialization, and JSON serialization.
SerializationInfo Class (System.Runtime.Serialization)
This class is used by objects with custom serialization behavior. The GetObjectData method on either ISerializable or ISerializationSurrogate populates the SerializationInfo store with the name, type, and …
How to ignore properties with System.Text.Json - .NET
To prevent serialization of default values in value type properties, set the DefaultIgnoreCondition property to WhenWritingDefault, as shown in the following example:
Serialization - Visual Basic | Microsoft Learn
Dec 21, 2022 · Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an …
Examples of XML Serialization - .NET | Microsoft Learn
These code examples show advanced scenarios, including how to use XML serialization to generate an XML stream that conforms to an XML Schema document.
SerializableAttribute Class (System) | Microsoft Learn
Indicates that a class can be serialized using binary or XML serialization. This class cannot be inherited.
Details of XML serialization - .NET | Microsoft Learn
Serialization converts an object into a form that can be transported. This article provides an overview of XML serialization and the XmlSerializer class.
Breaking change: Polymorphic serialization for object types - .NET ...
Nov 8, 2022 · Learn about the .NET 7 breaking change in serialization where System.Text.Json no longer hardcodes polymorphism for root-level object types.
JSON and XML Serialization in ASP.NET Web API - ASP.NET 4.x
May 11, 2022 · By default, XmlMediaTypeFormatter uses the DataContractSerializer class to perform serialization. If you prefer, you can configure the XmlMediaTypeFormatter to use the XmlSerializer …
Serialization - Framework Design Guidelines | Microsoft Learn
Oct 22, 2008 · Serialization is the process of converting an object into a format that can be readily persisted or transported. For example, you can serialize an object, transport it over the internet using …