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

I need to be able to clear collection changes #26

Closed
mfidemraizer opened this issue Dec 29, 2016 · 3 comments
Closed

I need to be able to clear collection changes #26

mfidemraizer opened this issue Dec 29, 2016 · 3 comments
Assignees

Comments

@mfidemraizer
Copy link
Owner

I've came to an edge case.

I'm tracking changes for an ISet<T> and, for some project requirement, I need to clear it and re-add all items in order to re-hash them internally in an implementation like HashSet<T>.

Currently, if I call ICollection<T>.Clear`, items will be cleared, but tracking information will still say that I've removed some items, and I've added some of them. In my particular case, if I had 3 items, clearing the collection ended up in having 6 added items (because they're the same items with a different hash code).

@mfidemraizer mfidemraizer self-assigned this Dec 29, 2016
mfidemraizer added a commit that referenced this issue Dec 29, 2016
@mfidemraizer
Copy link
Owner Author

Done!

@mfidemraizer
Copy link
Owner Author

I'll publish updated docs to reflect this new feature.

@mfidemraizer mfidemraizer reopened this Dec 29, 2016
mfidemraizer added a commit that referenced this issue Dec 29, 2016
@mfidemraizer
Copy link
Owner Author

Documentation is already done!

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

No branches or pull requests

1 participant