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;
 }
示例#2
0
 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;
 }