Click or drag to resize

RecordOptions Class

This class allows you to set some options of the records at runtime. With these options the library is now more flexible than ever.
Inheritance Hierarchy

Namespace:  FileHelpers.Options
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public abstract class RecordOptions

The RecordOptions type exposes the following members.

Properties
  NameDescription
Public propertyFieldCount
The number of fields of the record type.
Public propertyFields
Public propertyFieldsNames
Returns an string array with the fields names. Note : Do NOT change the values of the array, clone it first if needed
Public propertyFieldsTypes
Returns a Type[] array with the fields types. Note : Do NOT change the values of the array, clone it first if needed
Public propertyIgnoreCommentedLines
Indicates that the engine must ignore the lines with this comment marker.
Public propertyIgnoreEmptyLines
Indicates that the engine must ignore the empty lines while reading.
Public propertyIgnoreFirstLines
Indicates the number of first lines to be discarded.
Public propertyIgnoreLastLines
Indicates the number of lines at the end of file to be discarded.
Public propertyRecordCondition
Used to tell the engine which records must be included or excluded while reading.
Top
Methods
  NameDescription
Public methodRecordToString
Allows the creating of a record string of the given record. Is useful when your want to log errors to a plan text file or database
Public methodRecordToValues
Allows to get an object[] with the values of the fields in the record
Public methodRemoveField
Top
See Also