[]
        
(Showing Draft Content)

C1.DataCollection.C1SelectDataCollection-2.-ctor

C1SelectDataCollection Constructor

C1SelectDataCollection(IEnumerable, Func<int, S, T>)

Initializes a new instance of the C1SelectDataCollection<S, T> class.

Declaration
public C1SelectDataCollection(IEnumerable source, Func<int, S, T> select)
Parameters
Type Name Description
IEnumerable source

The source.

Func<int, S, T> select

Select function which converts a source item into an item of this collection.

C1SelectDataCollection(IEnumerable, Func<IReadOnlyList<S>, int, T>, Func<T, S>?)

Initializes a new instance of the C1SelectDataCollection<S, T> class.

Declaration
public C1SelectDataCollection(IEnumerable source, Func<IReadOnlyList<S>, int, T> select, Func<T, S>? selectBack = null)
Parameters
Type Name Description
IEnumerable source

The source.

Func<IReadOnlyList<S>, int, T> select

Select function which converts a source item into an item of this collection.

Func<T, S> selectBack

Function that gives the source item from the collection item. Used to insert and replace operations.

C1SelectDataCollection(IEnumerable)

Initializes a new instance of the C1SelectDataCollection<S, T> class.

Declaration
protected C1SelectDataCollection(IEnumerable source)
Parameters
Type Name Description
IEnumerable source

The source.