What steps will reproduce the problem?
1. Create a class with a collection.
2. Instantiate class and populate collection with 1 or more items.
3. Serialize class. Merge serialized data into class instance 2. Class
instances 1 and 2 match at this point. Any items in instance 2 that don't match
instance one are removed because of the OverwriteList attribute being set to
true.
4. Remove all items from instance 1.
5. Serialize instance 1 and merge to instance 2.
6. Instance 2 will still contain all items from the first merge. Instance 1 and
2 no longer match as they should.
What is the expected output? Empty collection in class instance 2.
What do you see instead? Collection with items from previous merge.
What version of the product are you using? v480
On what operating system? w7 x64
This is fairly easy to reproduce. Attaching a quick console app code.
Feel free to contact me at bblocher@frontporch.com with questions or perhaps a
work around if I'm doing something incorrectly.
Thanks,
Brian
Original issue reported on code.google.com by blocherb...@gmail.com on 23 Feb 2012 at 7:22
Original issue reported on code.google.com by
blocherb...@gmail.com
on 23 Feb 2012 at 7:22Attachments: