One day, I tried to define a data member inside a CollectionDataContract. Strangely, the data member was not generated in my proxy. It seemed that was not possible with WCF 3.0 (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2413798&SiteID=1)
[CollectionDataContract(...)]
public class MyCollectionDataContract : List
{
...
[DataMember(..)]
public string MyDataMember
{
...
}
}
The MyDataMember was not generated in the MyCollectionDataContract in the proxy.
2 comments:
A working solution is in my blog: http://borismod.blogspot.com/2009/04/wcf-collectiondatacontract-and.html
Post a Comment