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