Fixed issue with IncrementalLoadingCollection within AdvancedCollecti… #643
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…onView
Fixes #642
Fixed issue #642 by changing how the ACV handles generic types. The change is not perfect, but I wanted to be as non-invasive as possible. Ideally,
AdvancedCollectionView
would be generically typed itself, but that would be a major change.PR Type
What kind of change does this PR introduce?
Bugfix
What is the current behavior?
#642
The current behavior throws a
NullReferenceException
whenIncrementalLoadingCollection
is used as the source of the ACV. this happens because the first generic type argument of theIncrementalLoadingColleciton
is not the type of the objects in the list, but rather the type of theIIncrementalSource
used when constructing the ILC.What is the new behavior?
The new behavior fixes this issue by removing the generic type check and replacing it with the default behavior, which is to use the type of the first object being compared. It's not the most elegant solution, but it's non-invasive.
PR Checklist
Please check if your PR fulfills the following requirements:
Other information