Share via


IXmlSerializationAdapter Interface

Definition

Interface of adapter that serializes and deserializes object of a some non SFC type for SfcSerializer.

public interface IXmlSerializationAdapter
type IXmlSerializationAdapter = interface
Public Interface IXmlSerializationAdapter
Derived

Methods

ReadXml(XmlReader, Object)

Deserializes object from its xml representation (which will a valid xml). Implementation of this interface should unescape invalid xml characters that were escaped in WriteXml(), using SfcSecureString.XmlUnEscape()

WriteXml(XmlWriter, Object)

Serialize an object to its xml representation. Implementation of this interface should:

  1. produce a valid xml document(not just a fragment), just as XmlSerializer does.
  2. escape invalid xml characters in the string representation of the given object, if any, using SfcSecureString.XmlEscape()

Applies to