CsvFormatAttribute Class
Sets the format string used to write the values of a property or a field, and to read the dates and times.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class CsvFormatAttribute : CsvAttributeRemarks
The values of DateTime, DateTimeOffset, DateOnly, TimeOnly and TimeSpan are read with this exact format. The other values are written with this format and read as usual.
- Inheritance
CsvAttributeCsvFormatAttribute
Constructors
| Name | Description |
|---|---|
| CsvFormatAttribute(string) | Sets the format string used to write the values of a property or a field, and to read the dates and times. |
CsvFormatAttribute(string)
CsvFormatAttribute.csSets the format string used to write the values of a property or a field, and to read the dates and times.
public CsvFormatAttribute(string format)Properties
| Name | Description |
|---|---|
| Format | Gets the format string. |