Field class
Class which contains the configuration details of a field/property that is created either using Attributes or Fluent Configuration
public abstract class Field
Public Members
| name | description |
|---|---|
| Field() | Default Constructor |
| AllowedValues { get; set; } | Defines the allowed characters that can be used for a field in the file. |
| Formatter { get; } | The Formatter to be used for Serialization/Deserialization if the default formatting is not used. |
| FormatterType { get; set; } | Optional class which is used to control custom serialization/deserialization of this field. This class must implement the ITextFormatter interface. |
| Member { get; set; } | The reflected MemberInfo details of the field/property that this configures. |
| Optional { get; set; } | 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 { get; set; } | Position (column) where this field is serialized in the CSV file. |
| Size { get; set; } | Maximum length in the CSV file that this field should take up. |
See Also
- namespace TheCodingMonkey.Serialization