Click or drag to resize

ClassBuilder Class

The MAIN class to work with runtime defined records.
Inheritance Hierarchy

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

The ClassBuilder type exposes the following members.

Properties
  NameDescription
Public propertyAdditionalReferences
Public propertyClassName
Gets or sets the name of the Class.
Public propertyCommentText
Comment text placed above the class definition
Public propertyFieldCount
Returns the current number of fields.
Public propertyFields
Returns the current fields of the class.
Public propertyGenerateProperties
Indicates if this ClassBuilder generates also the property accessors (Perfect for DataBinding)
Public propertyIgnoreCommentedLines
Indicates that the engine must ignore the lines with this comment marker.
Public propertyIgnoreEmptyLines
Indicates that the engines must ignore the empty lines in the files.
Public propertyIgnoreFirstLines
Indicates the number of FIRST LINES or heading records to be ignored by the engines.
Public propertyIgnoreLastLines
Indicates the number of LAST LINES or trailing records to be ignored by the engines.
Public propertyNamespace
The namespace used when creating the class.
Public propertyRecordCondition
Allow to tell the engine what records must be included or excluded while reading.
Public propertySealedClass
Indicates if the generated class must be sealed.
Public propertyVisibility
The Visibility for the class.
Top
Methods
  NameDescription
Public methodStatic memberClassFromBinaryFile(String)
Create a class from a encrypted source file with the default password
Public methodStatic memberClassFromBinaryFile(String, NetLanguage)
Create a class from a encrypted source file with the default password
Public methodStatic memberClassFromBinaryFile(String, String, NetLanguage)
Create a class from a encrypted source file with the default password
Public methodStatic memberClassFromBinaryFile(String, String, NetLanguage, String)
Create a class from a encrypted source file with the given password
Public methodStatic memberClassFromSourceFile(String)
Create a class from a source file.
Public methodStatic memberClassFromSourceFile(String, NetLanguage)
Create a class from a source file.
Public methodStatic memberClassFromSourceFile(String, String)
Create a class from a source file.
Public methodStatic memberClassFromSourceFile(String, String, NetLanguage)
Create a class from a source file.
Public methodStatic memberClassFromString(String)
Compiles the source code passed and returns the FIRST Type of the assembly. (Code in C#)
Public methodStatic memberClassFromString(String, NetLanguage)
Compiles the source code passed and returns the FIRST Type of the assembly.
Public methodStatic memberClassFromString(String, String)
Compiles the source code passed and returns the Type with the name className. (Code in C#)
Public methodStatic memberClassFromString(String, String, NetLanguage, ListAssembly)
Compiles the source code passed and returns the Type with the name className.
Public methodStatic memberClassFromXmlFile
Create a class from a XML file generated with the Wizard or saved using the SaveToXml Method.
Public methodStatic memberClassToBinaryFile(String, String)
Encrypt the class source code with the default password and write it to a file.
Public methodStatic memberClassToBinaryFile(String, String, String)
Encrypt the class source code with the given password and write it to a file.
Public methodClearFields
Removes all the Fields of the current class.
Public methodCreateRecordClass
Generate the runtime record class to be used by the engines.
Public methodFieldByIndex
Return the field at the specified index.
Public methodGetClassBinaryCode
Returns the ENCRYPTED code for the current class in the specified language.
Public methodGetClassSourceCode
Returns the source code for the current class in the specified language.
Public methodStatic memberLoadFromXml(String)
Loads the XML representation of a ClassBuilder inheritor and return it. (for XML saved with SaveToXml method)
Public methodStatic memberLoadFromXml(XmlDocument)
Loads the XML representation of a ClassBuilder inheritor and return it. (for XML saved with SaveToXml method)
Public methodStatic memberLoadFromXmlString
Loads the XML representation of a ClassBuilder inheritor and return it. (for XML saved with SaveToXml method)
Public methodSaveToBinaryFile(String)
Write the ENCRYPTED source code of the current class to a file. (In C#)
Public methodSaveToBinaryFile(String, NetLanguage)
Write the ENCRYPTED source code of the current class to a file. (In C#)
Public methodSaveToSourceFile(String)
Write the source code of the current class to a file. (In C#)
Public methodSaveToSourceFile(String, NetLanguage)
Write the source code of the current class to a file. (In the specified language)
Public methodSaveToXml(Stream)
Saves to an Stream the XML representation of the current record class.
Public methodSaveToXml(TextWriter)
Save to a TextWriter the XML representation of the current record class.
Public methodSaveToXml(String)
Saves to a file the XML representation of the current record class.
Public methodSaveToXmlString
Creates the XML representation of the current record class.
Top
See Also