Exemplo n.º 1
0
 private static void CopyRows(DataTable target,
                              IEnumerable <DataRow> rows,
                              List <string> colValues,
                              bool hasSoleGeographicLevel)
 {
     rows.ForEach(row =>
     {
         var rowValues = CsvUtil.GetRowValues(row);
         if (CsvUtil.IsRowAllowed(hasSoleGeographicLevel, rowValues, colValues))
         {
             target.Rows.Add(row.ItemArray);
         }
     });
 }