Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When should we use ListCollectionView? [duplicate]

Tags:

c#

I stumbled over ListCollectionView and made me think about the best practices. When and why should i use ListCollectionView over ObservableCollection? for example.

like image 306
user3095715 Avatar asked Feb 07 '26 14:02

user3095715


1 Answers

When and why should i use ListCollectionView over ObservableCollection?

Probably never...

ListCollectionView represents a view of a collection; it is created when you use CollectionViewSource.GetDefaultView on a collection that implements IList. You typically don't create it yourself.

like image 72
Thomas Levesque Avatar answered Feb 09 '26 09:02

Thomas Levesque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!