<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

IXmlSerializable

public interface IXmlSerializable
Provides custom formatting for XML serialization and deserialization.

This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.

void ReadXml(XmlReader reader)

Generates an object from its XML representation.

void WriteXml(XmlWriter writer)

Converts an object into its XML representation.