Example #1
0
        public void AddRow(Row row)
        {
            if (_table == null)
            {
                throw new InvalidOperationException("Can't add rows after table is finished construction");
            }
            // $$$ Verify row is in source, mainly so that we know columns match

            // Since Rows have backpointer to table, must clone the row.
            // But we can keep the same data.
            Row newRow = new RowFromStreamingTable(row.Values, _table);

            _table._rows.Add(newRow);
        }
Example #2
0
        public void AddRow(Row row)
        {
            if (_table == null)
            {
                throw new InvalidOperationException("Can't add rows after table is finished construction");
            }
            // $$$ Verify row is in source, mainly so that we know columns match

            // Since Rows have backpointer to table, must clone the row.
            // But we can keep the same data.
            Row newRow = new RowFromStreamingTable(row.Values, _table);

            _table._rows.Add(newRow);
        }