I have a class(say CustomClass) which has few properties of type IEnumerable<Enum>
.
Pass the object of CustomClass
over the WCF and return object of Result
type(different type).
If I check CustomClass
parameter in WCF after its gets everything done and about to send response back to the client, CustomClass
parameter has that value, but by the time response reaches to the client, object of CustomClass
clear all the contents of that List property.
I just want to know, why?
Structure of Custom
Class is
public class QuerySearchCriteria
{
[DataMember]
public string DScope { get; set; }
[DataMember]
public IEnumerable<SOURCE> Sources { get; set; }
[DataMember]
public IEnumerable<ETYPE> ETypes { get; set; }
[DataMember]
public IEnumerable<Score> Score{ get; set; }
}
Everything goes fine, but items in Score
property are removed.