Cannot serialize member … of type System.Collections.Generic.Dictionary`2 because it implements IDictionary
问题 I am trying to pass a class with a Dictionary property over WCF and it is failing for one method but works for another. When the class is returned inside a List , it works. But when the class is returned inside a DataTable , the client just says the connection was disconnected and no error shows up. Here is the class causing issues: [DataContract] public class DetailLog { [DataMember] public string Name { get; set; } [DataMember] public string SubAction { get; set; } [DataMember] public