예제 #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);
        }
예제 #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);
        }