Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Xml.​Serialization.​IXmlSerializable

Assembly: System.Xml.ReaderWriter

Provides custom formatting for XML serialization and deserialization.

Methods

GetSchema​()
This method is reserved and should not be used. When implementing the <see langword="IXmlSerializable" /> interface, you should return <see langword="null" /> ( <see langword="Nothing" /> in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the <see cref="T:System.Xml.Serialization.XmlSchemaProviderAttribute" /> to the class.
Returns An <see cref="T:System.Xml.Schema.XmlSchema" /> that describes the XML representation of the object that is produced by the <see cref="M:System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)" /> method and consumed by the <see cref="M:System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)" /> method.
void
ReadXml​(XmlReader reader)
Generates an object from its XML representation.
reader The <see cref="T:System.Xml.XmlReader" /> stream from which the object is deserialized.
void
WriteXml​(XmlWriter writer)
Converts an object into its XML representation.
writer The <see cref="T:System.Xml.XmlWriter" /> stream to which the object is serialized.