Click or drag to resize

FieldBase Class

Base class for all Field Types. Implements all the basic functionality of a field in a typed file.
Inheritance Hierarchy

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

The FieldBase type exposes the following members.

Properties
  NameDescription
Public propertyArrayMaxLength
Array may have this many entries, if equal to ArrayMinLength then it is a fixed length array
Public propertyArrayMinLength
Array must have this many entries
Public propertyConverter
Provider to convert to and from text
Public propertyDiscarded
Do we process this field but not store the value
Public propertyFieldType
type of object to be created, eg DateTime
Public propertyIsArray
Is this field an array?
Public propertyIsNotEmpty
The field must be not be empty
Public propertyIsOptional
The field may not be present on the input data (line not long enough)
Public propertyTrimMode
indicates whether we trim leading and/or trailing whitespace
Top
Methods
  NameDescription
Public methodStatic memberCreateField
Check the Attributes on the field and return a structure containing the settings for this file.
Public methodCreateValueForField
Convert a field value into a write able value
Top
See Also