// ctor public TableBuilder(WorksheetFactory worksheetFactory, TableOptions options) { _worksheetFactory = worksheetFactory ?? throw new ArgumentNullException(nameof(worksheetFactory)); Options = options ?? throw new ArgumentNullException(nameof(options)); _tablePositionFinder = new TablePositionFinder(Options.TopLeft); prepare(); }
// ctor public RowBuilder(ExcelWorksheet ws, Position topLeft, TablePositionFinder tablePositionFinder) { _ws = ws ?? throw new ArgumentNullException(nameof(ws)); _topLeft = topLeft; _tablePositionFinder = tablePositionFinder ?? throw new ArgumentNullException(nameof(tablePositionFinder)); }
// ctor public RowBuilder( ExcelWorksheet ws, Position topLeft, TablePositionFinder tablePositionFinder, Func <IEnumerable <TSource> > dataFunc) : base(ws) { _topLeft = topLeft; _tablePositionFinder = tablePositionFinder ?? throw new ArgumentNullException(nameof(tablePositionFinder)); _dataFunc = dataFunc ?? throw new ArgumentNullException(nameof(dataFunc)); }