Trouble with DataContractSerializer
问题 I'm trying to make DataContract Serializer work with one of my class. Here it is : public class MyOwnObservableCollection<T> : ObservableCollection<T>, IDisposable where T : IObjectWithChangeTracker, INotifyPropertyChanged { protected List<T> removedItems; [DataMember] public List<T> RemovedItems { get { return this.removedItems;} set { this.removedItems = value;} } // Other code removed for simplification // ... // } It is important to understand that the RemovedItems list gets populated