/// <summary> /// Creates a shallow copy from another rowset resorting data per schema key definition, optionally applying a filter /// </summary> public Table(Rowset other, Func<Row, bool> filter = null) : base(other.Schema) { m_List = new List<Row>(); var src = filter==null ? other : other.Where(filter); foreach(var row in src) Insert(row); }
/// <summary> /// Creates a shallow copy from another rowset resorting data per schema key definition, optionally applying a filter /// </summary> public Table(Rowset other, Func <Row, bool> filter = null) : base(other.Schema) { m_List = new List <Row>(); var src = filter == null ? other : other.Where(filter); foreach (var row in src) { Insert(row); } }