CsvFieldConfiguration class
Fluent Configuration class used to configure fields and properties which are serialized using the CsvSerializer class.
public class CsvFieldConfiguration
Public Members
| name | description |
|---|---|
| FormatEnum(…) | For fields which are enumerations, controls how they are serialized and deserialized, either using the String representation or the Integer representation. |
| FormatterType(…) | Optional class which is used to control custom serialization/deserialization of this field. This class must implement the ITextFormatter interface. |
| Name(…) | Name of this field. If not specified, then the property/field name of the class/struct is used. If a header is written to the CSV file, then this is the value that is used. |
| Optional(…) | Determines whether this field is optional. Because of the nature of CSV and FixedWidth file formats, optional fields should only be a the end of the record. |
| Position(…) | Position (column) where this field is serialized in the CSV file. |
| Size(…) | Maximum length in the CSV file that this field should take up. |