Click or drag to resize

FixedLengthClassBuilder Class

Used to create classes that maps to Fixed Length records.
Inheritance Hierarchy
SystemObject
  FileHelpers.DynamicClassBuilder
    FileHelpers.DynamicFixedLengthClassBuilder

Namespace:  FileHelpers.Dynamic
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public sealed class FixedLengthClassBuilder : ClassBuilder

The FixedLengthClassBuilder type exposes the following members.

Constructors
  NameDescription
Public methodFixedLengthClassBuilder(String)
Used to create classes that maps to Fixed Length records.
Public methodFixedLengthClassBuilder(String, FixedMode)
Used to create classes that maps to Fixed Length records.
Public methodFixedLengthClassBuilder(String, Int32)
Used to create classes that maps to Fixed Length records and automatically instantiate many string fields as values are passed in the lengths arg.
Public methodFixedLengthClassBuilder(String, DataTable, Int32)
Used to create classes that maps to Fixed Length records with the same structure than a DataTable.
Top
Properties
  NameDescription
Public propertyAdditionalReferences (Inherited from ClassBuilder.)
Public propertyClassName
Gets or sets the name of the Class.
(Inherited from ClassBuilder.)
Public propertyCommentText
Comment text placed above the class definition
(Inherited from ClassBuilder.)
Public propertyFieldCount
Returns the current number of fields.
(Inherited from ClassBuilder.)
Public propertyFields
Returns the current fields of the class.
Public propertyFixedMode
Indicates the behavior when variable length records are found
Public propertyGenerateProperties
Indicates if this ClassBuilder generates also the property accessors (Perfect for DataBinding)
(Inherited from ClassBuilder.)
Public propertyIgnoreCommentedLines
Indicates that the engine must ignore the lines with this comment marker.
(Inherited from ClassBuilder.)
Public propertyIgnoreEmptyLines
Indicates that the engines must ignore the empty lines in the files.
(Inherited from ClassBuilder.)
Public propertyIgnoreFirstLines
Indicates the number of FIRST LINES or heading records to be ignored by the engines.
(Inherited from ClassBuilder.)
Public propertyIgnoreLastLines
Indicates the number of LAST LINES or trailing records to be ignored by the engines.
(Inherited from ClassBuilder.)
Public propertyLastField
Return the last added field. (use it reduce casts and code)
Public propertyNamespace
The namespace used when creating the class.
(Inherited from ClassBuilder.)
Public propertyRecordCondition
Allow to tell the engine what records must be included or excluded while reading.
(Inherited from ClassBuilder.)
Public propertySealedClass
Indicates if the generated class must be sealed.
(Inherited from ClassBuilder.)
Public propertyVisibility
The Visibility for the class.
(Inherited from ClassBuilder.)
Top
Methods
  NameDescription
Public methodAddField(FixedFieldBuilder)
Adds a new Fixed Length field.
Public methodAddField(String, Int32, String)
Adds a new Fixed Length field.
Public methodAddField(String, Int32, Type)
Adds a new Fixed Length field.
Public methodClearFields
Removes all the Fields of the current class.
(Inherited from ClassBuilder.)
Public methodCreateRecordClass
Generate the runtime record class to be used by the engines.
(Inherited from ClassBuilder.)
Public methodFieldByIndex
Return the field at the specified index.
Public methodGetClassBinaryCode
Returns the ENCRYPTED code for the current class in the specified language.
(Inherited from ClassBuilder.)
Public methodGetClassSourceCode
Returns the source code for the current class in the specified language.
(Inherited from ClassBuilder.)
Public methodSaveToBinaryFile(String)
Write the ENCRYPTED source code of the current class to a file. (In C#)
(Inherited from ClassBuilder.)
Public methodSaveToBinaryFile(String, NetLanguage)
Write the ENCRYPTED source code of the current class to a file. (In C#)
(Inherited from ClassBuilder.)
Public methodSaveToSourceFile(String)
Write the source code of the current class to a file. (In C#)
(Inherited from ClassBuilder.)
Public methodSaveToSourceFile(String, NetLanguage)
Write the source code of the current class to a file. (In the specified language)
(Inherited from ClassBuilder.)
Public methodSaveToXml(Stream)
Saves to an Stream the XML representation of the current record class.
(Inherited from ClassBuilder.)
Public methodSaveToXml(TextWriter)
Save to a TextWriter the XML representation of the current record class.
(Inherited from ClassBuilder.)
Public methodSaveToXml(String)
Saves to a file the XML representation of the current record class.
(Inherited from ClassBuilder.)
Public methodSaveToXmlString
Creates the XML representation of the current record class.
(Inherited from ClassBuilder.)
Public methodSetFieldsLength
Set the length of each field at once.
Top
See Also