[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.ReplaceRangeAsync

ReplaceRangeAsync Method

ReplaceRangeAsync<T>(IDataCollection<T>, int, IEnumerable<T>, CancellationToken)

Replaces the items at the specified index by the specified items.

Declaration
public static Task ReplaceRangeAsync<T>(this IDataCollection<T> dataCollection, int startingIndex, IEnumerable<T> items, CancellationToken cancellationToken = default) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int startingIndex

The index.

IEnumerable<T> items

The items.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Type Parameters
Name Description
T