XML Serialization: Creating multiple instances of the same reference #1020

Closed
samirem opened this Issue May 15, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@samirem

samirem commented May 15, 2017

Steps to reproduce

Run the repro provided

Expected behaviour

When serializing/deserializing, I want references to the same instance to be kept.

To clarify: In my repro example I expect that the "garage.Vehicles[0]" and "garage.VehicleGroups[0].Vehicles[0]" should both hold a reference to the same instance of 'car1', since they do that before serialization/deserialization.

Actual behaviour

See repro

SerializationRepro.gz

@GeertvanHorrik GeertvanHorrik added this to the 5.1.0 milestone Jun 1, 2017

@GeertvanHorrik

This comment has been minimized.

Show comment
Hide comment
@GeertvanHorrik

GeertvanHorrik Jun 1, 2017

Member

We are trying to make all the breaking changes ASAP for v5. I'll put this on the list for 5.1 which will be the first maintenance release of the v5 branch.

Member

GeertvanHorrik commented Jun 1, 2017

We are trying to make all the breaking changes ASAP for v5. I'll put this on the list for 5.1 which will be the first maintenance release of the v5 branch.

@GeertvanHorrik

This comment has been minimized.

Show comment
Hide comment
@GeertvanHorrik

GeertvanHorrik Aug 5, 2017

Member

This is probably caused because the collection is serialized by the internal DataContractSerializer. I'll check what I can do to enforce graphid to be added to the elements.

Member

GeertvanHorrik commented Aug 5, 2017

This is probably caused because the collection is serialized by the internal DataContractSerializer. I'll check what I can do to enforce graphid to be added to the elements.

@GeertvanHorrik GeertvanHorrik modified the milestones: 5.2.0, 5.1.0 Aug 11, 2017

@GeertvanHorrik GeertvanHorrik modified the milestones: 5.2.0, 5.3.0 Sep 13, 2017

@GeertvanHorrik GeertvanHorrik modified the milestones: 5.3.0, 5.4.0 Nov 24, 2017

@GeertvanHorrik GeertvanHorrik modified the milestones: 5.4.0, 5.5.0 Mar 22, 2018

@GeertvanHorrik GeertvanHorrik modified the milestones: 5.5.0, Up for grabs May 15, 2018

@GeertvanHorrik

This comment has been minimized.

Show comment
Hide comment
@GeertvanHorrik

GeertvanHorrik May 15, 2018

Member

Moving this to up-for-grabs since we don't need this functionality ourselves in the near future.

Member

GeertvanHorrik commented May 15, 2018

Moving this to up-for-grabs since we don't need this functionality ourselves in the near future.

@stale

This comment has been minimized.

Show comment
Hide comment
@stale

stale bot Jul 14, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale bot commented Jul 14, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 14, 2018

@stale stale bot closed this Jul 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment