1
Vote

Silverlight generation doesn't create necessary serialization attributes

description

Silverlight generation creates serialization attributes for collections, but not elements or attributes. If a collection element and a non-collection element appear in a sequence, each element needs an Order parameter defined. The collection gets [System.Xml.Serialization.XmlArrayAttribute(Order = 0)] but then the next element does not and serialization fails. I currently work around this by generating for .NET 4.0 and removing anything Silverlight can't handle (SerializableAttribute and DesignerCategoryAttribute for each class).

comments

TwoStick wrote Jun 6, 2012 at 1:45 PM

I have a fix for this, although I'm not entirely sure how to go about the process around submitting my code change and linking it to an issue # etc.

wrote Jun 12, 2012 at 8:31 AM

I think this is already fixed with ChangeSet 91910.
And it is maybe duplicate to Item 13545!?

TwoStick wrote Jun 12, 2012 at 12:13 PM

Hmm... Ok. I'm fairly new to this check-in stuff... I thought when I checked out the latest source, I'd get all changes... is that true? If so, the issue that I fixed would still exist... Now there was an attempt to fix another silverlight issue in the area I had made some additions to, but this broke the SL serialization as it removed to many XML serialization attributes. My patch upload # is : 12358 . I added some more comments there.