using System; using System.ComponentModel; namespace FileHelpers { // ---- Read Operations ---- #if NET_1_1 /// /// Called in read operations just before the record string is translated to a record. /// /// The engine that generates the event. /// The event data. public delegate void BeforeReadRecordHandler(EngineBase engine, BeforeReadRecordEventArgs e); /// /// Called in read operations just after the record was created from a record string. /// /// The engine that generates the event. /// The event data. public delegate void AfterReadRecordHandler(EngineBase engine, AfterReadRecordEventArgs e); // ---- Write Operations ---- /// /// Called in write operations just before the record is converted to a string to write it. /// /// The engine that generates the event. /// The event data. public delegate void BeforeWriteRecordHandler(EngineBase engine, BeforeWriteRecordEventArgs e); /// /// Called in write operations just after the record was converted to a string. /// /// The engine that generates the event. /// The event data. public delegate void AfterWriteRecordHandler(EngineBase engine, AfterWriteRecordEventArgs e); #else /// /// Called in read operations just before the record string is translated to a record. /// /// The engine that generates the event. /// The event data. public delegate void BeforeReadRecordHandler(EngineBase engine, BeforeReadRecordEventArgs e); /// /// Called in read operations just after the record was created from a record string. /// /// The engine that generates the event. /// The event data. public delegate void AfterReadRecordHandler(EngineBase engine, AfterReadRecordEventArgs e); // ---- Write Operations ---- /// /// Called in write operations just before the record is converted to a string to write it. /// /// The engine that generates the event. /// The event data. public delegate void BeforeWriteRecordHandler(EngineBase engine, BeforeWriteRecordEventArgs e); /// /// Called in write operations just after the record was converted to a string. /// /// The engine that generates the event. /// The event data. public delegate void AfterWriteRecordHandler(EngineBase engine, AfterWriteRecordEventArgs e); /// /// Called in read operations just before the record string is translated to a record. /// /// The engine that generates the event. /// The event data. public delegate void BeforeReadRecordHandler(EngineBase engine, BeforeReadRecordEventArgs e); /// /// Called in read operations just after the record was created from a record string. /// /// The engine that generates the event. /// The event data. public delegate void AfterReadRecordHandler(EngineBase engine, AfterReadRecordEventArgs e); // ---- Write Operations ---- /// /// Called in write operations just before the record is converted to a string to write it. /// /// The engine that generates the event. /// The event data. public delegate void BeforeWriteRecordHandler(EngineBase engine, BeforeWriteRecordEventArgs e); /// /// Called in write operations just after the record was converted to a string. /// /// The engine that generates the event. /// The event data. public delegate void AfterWriteRecordHandler(EngineBase engine, AfterWriteRecordEventArgs e); #endif }