[]
Initializes a new instance of the C1ConvertDataCollection<S, T> class.
protected C1ConvertDataCollection(IEnumerable source)
Protected Sub New(source As IEnumerable)
| 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)
Public Sub New(source As IEnumerable, convert As Func(Of IReadOnlyList(Of S), Integer, T), Optional convertBack As Func(Of T, S) = Nothing)
| 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. |