I am having trouble deserializing the object.
I have the following classes:
Metadatastore:
[DataContract] public class MetadataStore : IEnumerable<ItemMetadata> { private List<ItemMetadata> data = new List<ItemMetadata>(); private string folderPath = null; [DataMember] public string FilePath {
ItemMetadata:
[Serializable()] public class ItemMetadata {
Problem:
I am passing the Metadatastore object from my server (which works with the wcf service) to my client using the output parameter. Thus, serialization / deserialization of this output parameter is done automatically by wcf. Here's what happens:
the client calls the service:
service.GetChangeBatch(out metadatastore_object, otherValue);
the server responds correctly (metadatastore_object is full and serialized successfully β no errors)
the object that I get on the client side is incorrect: FilePath is filled correctly, but the Data List object contains null elements! I also checked on the server and the data list contained 2 items. Another strange thing that should be noted is that it is not zero, it is just a newly created empty list. Does anyone have any experience with this, I can provide more code if necessary. Thanks in advance. Salutes Daan
source share