|
Recently I converted a class (called "Players") that was previously derived from ArrayList to now be derived from Dictionary. When I tried to deserialize it I got the runtime error: �em>The constructor to deserialize an object of type 'CMC1.Players' was not found � I was able to fix this by adding a dummy constructor that calls the base class: public Players(SerializationInfo serInfo, StreamingContext serContext) : base(serInfo, serContext) { } But I have 3 questions: 1. Why is this required for Dictionary but not ArrayList? 2. Does Microsoft document which classes require this? 3. Why did the error occur during DEserialization but not the original serialization?
|