/Sources/DataAccess/RowFromStreamingTable.cs
C# | 36 lines | 32 code | 3 blank | 1 comment | 0 complexity | 3af3e5b6e0659bad60e48c31b2bcb8c6 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.IO;
- using System.Diagnostics;
- using System.Text.RegularExpressions;
- using System.Linq;
- using System.Collections.ObjectModel;
- namespace DataAccess
- {
- // Representation of a row when the values are already computed (perhaps from a stream reader)
- internal class RowFromStreamingTable : Row
- {
- readonly IList<string> _values;
- readonly DataTable _table;
- internal RowFromStreamingTable(IList<string> values, DataTable table)
- {
- _values = values;
- _table = table;
- }
- public override IList<string> Values
- {
- get
- {
- return new ReadOnlyCollection<string>(_values);
- }
- }
- public override IEnumerable<string> ColumnNames
- {
- get { return _table.ColumnNames; }
- }
- }
- }