Contains the last Record read by the ReadNext method.
This example show the basic use of the async methods in the FileHelperAsymcEngine:
using FileHelpers; // First declare the record class [Delimitedrecord("|")] public class SampleType { public string Field1; public int Field2; } public void ReadExample() { SampleType record; FileHelperAsyncEngine engine = new FileHelperAsyncEngine(typeof(SampleType)); engine.BeginReadFile("source.txt"); while( engine.ReadNext() != null ) { record = (SampleType) engine.LastRecord; // put your code here !!!! Console.WriteLine("Data " + record.Field1 + " , " + record.Field2.ToString()); } engine.Close(); }
FileHelperAsyncEngine Class | FileHelpers Namespace