[]
Collection which allows converting the items through a select clause and cache the converted items.
public class C1ConvertDataCollection<S, 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 S : class? where T : class?
Name | Description |
---|---|
S | The type of the items in the source collection. |
T | The type of the items in the collection. |
Name | Description |
---|---|
C1ConvertDataCollection(IEnumerable) | Initializes a new instance of the C1ConvertDataCollection<S, T> class. |
C1ConvertDataCollection(IEnumerable, Func<IReadOnlyList<S>, int, T>, Func<T, S>?) | Initializes a new instance of the C1ConvertDataCollection<S, T> class. |
Name | Description |
---|---|
Convert | Gets or sets the function that converts a source item into an item of this collection. |
ConvertBack | Gets or sets the function that gets the source item from a converted item. |
NotifySourceResetAsReplace | Gets or sets whether the Reset notifications coming from the source will be notified as a Replace. |
Name | Description |
---|---|
GetCachedItems(int?, int?) | Gets the cached items in the specified range. |
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. |