BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in XmlSerializer

 
 
Page 8063 of 17337

Collection property serialization with DataContractSerializer takes us a step backwards?

Blogger : Web Services
All posts : All posts by Web Services
Category : XmlSerializer
Blogged date : 2006 Sep 28

Since I have to define my fault details with DataContractSerializer attributes for now (I hope it's only for now anyway), I was looking at how to translate a property that was previously serialized by the XmlSerializer using XmlArrayAttribute and XmlArrayItemAttribute. Well, I figured out pretty quick there was no equivalent, found CollectionDataContractAttribute, but thought "noooo, this can't be the only way... can it?". Unfortunately a quick search revealed this post by Christian Weyer that confirmed my fears. Why oh why do I have to go writing a whole new collection class now just to decorate it with attributes when I could decorate the member itself?

Argh... there's nothing more frustrating than seeing an API try to re-invent the wheel and end up with something that is worse off than what we have today. :(


Read comments or post a reply to : Collection property serialization with DataContractSerializer takes us a step backwards?
Page 8063 of 17337

Newest posts
 

    Email TopXML