using System;
using System.ComponentModel;
namespace FileHelpers
{
#if NET_1_1
/// Base class of and
[EditorBrowsable(EditorBrowsableState.Never)]
public abstract class WriteRecordEventArgs: EventArgs
{
internal WriteRecordEventArgs(object record, int lineNumber)
{
mRecord = record;
mLineNumber = lineNumber;
}
#else
/// Base class of and
[EditorBrowsable(EditorBrowsableState.Never)]
public abstract class WriteRecordEventArgs : EventArgs
{
internal WriteRecordEventArgs(T record, int lineNumber)
{
mRecord = record;
mLineNumber = lineNumber;
}
#endif
#if NET_1_1
private object mRecord;
/// The current record.
public object Record
{
get { return mRecord; }
}
#else
private T mRecord;
/// The current record.
public T Record
{
get { return mRecord; }
}
#endif
private int mLineNumber;
/// The current line number.
public int LineNumber
{
get { return mLineNumber; }
}
}
/// Arguments for the
#if NET_1_1
public sealed class BeforeWriteRecordEventArgs: WriteRecordEventArgs
{
internal BeforeWriteRecordEventArgs(object record, int lineNumber)
#else
public sealed class BeforeWriteRecordEventArgs: BeforeWriteRecordEventArgs