Exemple #1
0
 public static DataTable ReadDataTableFromFile(string file)
 {
     using (var reader = new StreamReader(file))
         return(CsvParser.CreateDataTable(reader));
 }
Exemple #2
0
 public static DataTable ReadDataTableFromString(string csv)
 {
     using (var reader = new StringReader(csv))
         return(CsvParser.CreateDataTable(reader));
 }