ixmlserializable

Custom serialization of a dictionary fails when xml has indentation/line break

In order to have a cleaner XML of a Dictionary serialization, I wrote a custom class, that implements IXmlSerializable . My custom class is defined like this: public class MyCollection : System.Collections.Generic.Dictionary<string, string>, IXmlSerializable { private const string XmlElementName =