Click or drag to resize
IXmlSerialiser Interface
The interface for objects that can serialise objects to XML and deserialise objects from XML.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IXmlSerialiser

The IXmlSerialiser type exposes the following members.

Properties
  NameDescription
Public propertyXmlSerializerCompatible
Gets or sets a value indicating that attempts to serialise objects that can't be deserialised by System.Xml.XmlSerializer will throw an exception. Defaults to true.
Top
Methods
Remarks
The implementation of this interface doesn't need to be able to serialise and deserialise everything that XmlSerializer can do, it just needs to be able to do enough to handle the Configuration.xml file. I used to use XmlSerializer to read and write this but then Mono started whining about namespaces, so I needed to work around Mono (again). This is the result. I'm not writing anything else in XML, any new serialisation is going to use JSON. However I can't switch the configuration over to JSON, it would make life hard for people who want to roll back to pre-JSON-configuration versions of VRS.
See Also