Catel.Core by Catel

<PackageReference Include="Catel.Core" Version="5.6.0-beta0007" />

 ICustomXmlSerializable

public interface ICustomXmlSerializable
Allows a type to implement their own (de)serialization mechanism.
void Deserialize(XElement xmlElement)

Serializes the object from the specified xml element.

Note that the object is always constructed by the serialization engine, the object itself must read the values from the xmlElement.

void Serialize(XElement xmlElement)

Serializes the object to the specified xml element.