1

Resolved

System.Collections.Specialized.StringDictionary has problem serialising

description

Problem
Any entity within an interface has a property of type System.Collections.Specialized.StringDictionary (or based on this type) will have problems serialising when the service is invoked. This occurs when the property is marked with the "CollectionDataContract" attribute.
 
Resolution (fixed in pending v0.3 release)
Changing this attribute to "DataContract" fixes this problem but makes for pretty ugly client proxy code but at least it works! I have added a new property to the TargetWrapper entity returned from the code generator - this property holds a list of messages about any problems/issues encountered when generating the code - these messages can be displayed to the user to allow further action if desired
 
Workaround
For v0.2 users either manually change the [CollectionDataContract] attribute applied to any StringDictionary properties to [DataContract] or change the type to Dictionary<string, string> - these serialise correctly as a collection.

comments