[]
        
(Showing Draft Content)

C1.DataCollection.C1SortDataCollection-1

C1SortDataCollection<T> Class

Collection which supports sorting.

Inheritance
C1SortDataCollection<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public class C1SortDataCollection<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?
Type Parameters
Name Description
T

Constructors

Name Description
C1SortDataCollection(IEnumerable<T>)

Initializes a new instance of the C1SortDataCollection<T> class.

Properties

Name Description
Cache

Gets or sets the cache used to store compiled predicates.

InternalList

Gets or sets the list that hold the items to be returned in the public api.

IsSorted

Gets whether the collection is sorted.

RunSynchronously

Gets or sets whether the sorting is performed synchronously.

SortDescriptions

Gets the sort descriptions applied to the data.

UseCPUsInParallel

Gets or sets a value indicating whether the operations will be performed using parallels CPU's.

Methods

Name Description
CanInsertRange(int, IEnumerable<T>)

Determines whether a new range of items can be inserted in the collection at the specified startingIndex.

CanMove(int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanMoveRange(int, int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanRemoveRange(int, int)

Determines whether a range of items at the specified startingIndex can be removed from the collection.

CanReplaceRange(int, IEnumerable<T>)

Determines whether the items starting at the specified startingIndex can be replaced in the collection.

CanSort(params SortDescription[])

Returns whether the collection is able to sort the specified sort descriptions.

GetSourceIndex(int)

Gets the index of the item at the specified index in the source.

InsertAsync(int, T, CancellationToken)

Inserts the specified item at the specified index in the collection.

MoveAsync(int, int, CancellationToken)

Moves an item from the specified position to the new one.

OnSourceCollectionChanged(object?, NotifyCollectionChangedEventArgs)

Called when the source collection changed.

RemoveAsync(int, CancellationToken)

Removes the item at the specified index from the collection.

ReplaceAsync(int, T, CancellationToken)

Replaces the item at the specified index by the new specified item.

SortAsync(SortDescription[], CancellationToken)

Sorts the collection according to the specified sort descriptions.

Extension Methods