[]
        
(Showing Draft Content)

C1.DataCollection.C1ConvertDataCollection-2.-ctor

C1ConvertDataCollection Constructor

C1ConvertDataCollection(IEnumerable)

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

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

The source.

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

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

Declaration
public C1ConvertDataCollection(IEnumerable source, Func<IReadOnlyList<S>, int, T> convert, Func<T, S>? convertBack = null)
Parameters
Type Name Description
IEnumerable source

The source.

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

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

Func<T, S> convertBack

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