[]
Initializes a new instance of the C1ConvertDataCollection<S, T> class.
protected C1ConvertDataCollection(IEnumerable source)
Type | Name | Description |
---|---|---|
IEnumerable | source | The source. |
Initializes a new instance of the C1ConvertDataCollection<S, T> class.
public C1ConvertDataCollection(IEnumerable source, Func<IReadOnlyList<S>, int, T> convert, Func<T, S>? convertBack = null)
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. |