Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX - Reference loop checking (check reference, not equality) #214

Closed
wants to merge 1 commit into from

Conversation

ivanjh
Copy link

@ivanjh ivanjh commented Feb 20, 2014

Reference loop checking's use of List.IndexOf() performs an equality comparison, and not a reference comparison.

Serializing object hierarchies with custom Object.Equals() overrides may falsely trigger reference loop exceptions.

Proposed fix attached.

@JamesNK
Copy link
Owner

JamesNK commented Feb 20, 2014

Some people override Equals to customize reference loop checking so this would be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants