You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>?
The text was updated successfully, but these errors were encountered:
I have forked this project and created a unit test to illustrate my concern, see here.
ObservableRangeCollection.AddRange
allows for a collection of typeIEnumerable<T>
. However, if the enumerable is invalidated upon traversal, theCollectionChanged
event will yield an invalidNewItems
list.Question is, whether
collection
should be of typeIEnumerable<T>
, or if it should be limited e.g. toIList<T>
?The text was updated successfully, but these errors were encountered: