I have a Dictionary object which needs to be written into an XML file. The dictionary contains String type as Key and a custom class\'s Object (Deriving from System.Windows.
Generic dictionaries cannot be XmlSerialized. The error you get is caused by the public property DicCtrl.
[XmlIgnore] attribute to skip this property when serializing (which is probably not what you want).ListBTW the [Serializable] attribute is only needed for binary serialization. You do not need it for Xml serialization.