Serializing objects to XML and back again in C# is trivial until you need greater control over the operation. How do you serialize binary data, Color properties or some object type that hasn't been invented yet? Implementing IXmlSerializable allows you to read and write object data in whatever format and by any means you choose.
The example serializes a list of objects with a single Color property.
<?xml version="1.0" ?>
The sample below serializes "MyObjects.xml" from disk to populate a MYObjectList object, makes changes to the list and re-writes "MyObjects.xml". The two important ...