public ColumnToCollectionDataExtractor( Func <TRow, TCollection> getCollectionProperty, int headerRow, string startingColumn, ColumnToCollectionConfiguration <TCollectionItem> columnToCollectionConfiguration) { this.headerRow = headerRow; this.startingColumn = SpreadsheetHelper.ConvertColumnHeaderToNumber(startingColumn); this.getCollectionProperty = getCollectionProperty; this.columnToCollectionConfiguration = columnToCollectionConfiguration; }
public NewableColumnToCollectionDataExtractor( Expression <Func <TRow, TCollection> > collectionPropertyExpr, int headerRow, string startingColumn, ColumnToCollectionConfiguration <TCollectionItem> columnToCollectionConfiguration) { this.headerRow = headerRow; this.startingColumn = SpreadsheetHelper.ConvertColumnHeaderToNumber(startingColumn); this.setCollectionProperty = collectionPropertyExpr.CreatePropertyValueSetterAction(); this.getCollection = collectionPropertyExpr.Compile(); this.columnToCollectionConfiguration = columnToCollectionConfiguration; }