Exemple #1
0
 /// <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);
 }
Exemple #2
0
        /// <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);
            }
        }