New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support CSV #14
Labels
Projects
Comments
CsvHelper void Main()
{
var records = new List<Foo>
{
new Foo { Id = 1, Name = "one" },
new Foo { Id = 2, Name = "two" },
};
var path = Path.Combine(Path.GetTempPath(),$"{Guid.NewGuid().ToString()}.csv");
using (var writer = new StreamWriter(path))
using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
csv.WriteRecords(records);
}
Console.WriteLine(path);
}
// You can define other methods, fields, classes and namespaces here
public class Foo
{
public int Id { get; set; }
public string Name { get; set; }
}
|
csvhelper |
Lazy loading will meet if using stream it'll dipose before lazy loading, so system will show
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why ExcelDataReader read csv need another method
The text was updated successfully, but these errors were encountered: