[]
Collection that takes another source and cache the items.
public class C1CacheDataCollection<T> : C1WrapDataCollection<T>, IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportVirtualization, ISupportConnection, ISupportAsyncLoading<T>, ISupportIncrementalLoading, ISupportRefreshing, ISupportRangeEditing<T>, ISupportEditing<T>, ISupportCreateNewItem<T>, ISupportPaging, ISupportSource where T : class?
Name | Description |
---|---|
T | The type of the items in the collection. |
The creation of the items will be delayed until they are accessed. This way the memory and processor usage is optimized.
Name | Description |
---|---|
C1CacheDataCollection(IEnumerable) | Initializes a new instance of the C1CacheDataCollection<T> class. |
Name | Description |
---|---|
NotifySourceResetAsReplace | Gets or sets whether the Reset notifications coming from the source will be notified as a Replace. |
Name | Description |
---|---|
CreateInternalList(IReadOnlyList<T>) | Creates the internal list from the source. |
Dispose(bool) | Called to dispose resources. |
GetCachedItems(int?, int?) | Gets the cached items in the specified range. |
GetLoadedItems(int?, int?) | Returns the items that has be loaded so far. |
IndexOf(T) | Gets the index of the specified item. |
InsertAsync(int, T, CancellationToken) | Inserts the specified |
InsertRangeAsync(int, IEnumerable<T>, CancellationToken) | Inserts the specified |
OnCollectionChanging(NotifyCollectionChangedEventArgs) | Raises the CollectionChanging event. |
OnSourceCollectionChanged(object?, NotifyCollectionChangedEventArgs) | Called when the source collection changed. |
ReplaceAsync(int, T, CancellationToken) | Replaces the item at the specified |
ReplaceRangeAsync(int, IEnumerable<T>, CancellationToken) | Replaces the items starting at the specified |
Name | Description |
---|---|
CollectionChanging | Occurs before the collection changes. |
ItemLoaded | Occurs when an item is added to the cache. |
ItemUnloaded | Occurs when an item is removed from the cache. |