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

When using ObservableRangeCollection.AddRange with IEnumerable, CollectionChanged event may be corrupt #69

Open
anders9ustafsson opened this issue Jun 30, 2020 · 0 comments

Comments

@anders9ustafsson
Copy link

I have forked this project and created a unit test to illustrate my concern, see here.

ObservableRangeCollection.AddRange allows for a collection of type IEnumerable<T>. However, if the enumerable is invalidated upon traversal, the CollectionChanged event will yield an invalid NewItems list.

Question is, whether collection should be of type IEnumerable<T>, or if it should be limited e.g. to IList<T>?

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

No branches or pull requests

1 participant