Click or drag to resize

CsvClassBuilder Class

Used to create classes that maps to CSV records (can be quoted, multiple lines, quoted, etc).
Inheritance Hierarchy

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

The CsvClassBuilder type exposes the following members.

Constructors
  NameDescription
Public methodCsvClassBuilder(CsvOptions)
Creates a new DelimitedClassBuilder.
Public methodCsvClassBuilder(String, Char, Int32)
Creates a new DelimitedClassBuilder.
Public methodCsvClassBuilder(String, Char, String)
Creates a new DelimitedClassBuilder.
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 propertyDelimiter
The Delimiter that marks the end of each field.
(Inherited from DelimitedClassBuilder.)
Public propertyFieldCount
Returns the current number of fields.
(Inherited from ClassBuilder.)
Public propertyFields
Returns the current fields of the class.
(Inherited from DelimitedClassBuilder.)
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)
(Inherited from DelimitedClassBuilder.)
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(String)
Add a new Delimited string field to the current class.
(Inherited from DelimitedClassBuilder.)
Public methodAddField(DelimitedFieldBuilder)
Add a new Delimited field to the current class.
(Inherited from DelimitedClassBuilder.)
Public methodAddField(String, String)
Add a new Delimited field to the current class.
(Overrides DelimitedClassBuilderAddField(String, String).)
Public methodAddField(String, Type)
Add a new Delimited field to the current class.
(Inherited from DelimitedClassBuilder.)
Public methodAddFields(Int32)
Adds to the class the specified number of fields.
(Overrides DelimitedClassBuilderAddFields(Int32).)
Public methodAddFields(Int32, String)
Adds to the class the specified number of fields.
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.
(Inherited from DelimitedClassBuilder.)
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.)
Top
See Also