CsvFileRecordLine Class

Definition

Namespace: DataStandardizer.File.CSV

The base type for a CSV data record. Used directly it behaves as a name-keyed bag of field values; subclass it to expose fields as strongly-typed properties.

Syntax

public class CsvFileRecordLine : CsvFileLineBase

Remarks

To expose typed fields, override property getters and setters to call the protected virtual helpers GetPropertyValue<T>([CallerMemberName] string? propertyName = null) and SetPropertyValue<T>(T value, [CallerMemberName] string? propertyName = null). Each helper resolves the backing field name from the property (honouring any CsvFieldAttribute) and reads or writes the field bag inherited from CsvFileLineBase. These helpers are protected and therefore not part of the public surface; the public Add and the explicit IOrderedDictionary members are inherited from CsvFileLineBase.

CsvFileReader<TRecordLine> requires a CsvFileRecordLine-derived type with a public parameterless constructor; CsvFileWriter<TRecordLine> does not.

Applies to

Targets netstandard1.3, netstandard2.0, net8.0, and net10.0.

See also

</content>


This site uses Just the Docs, a documentation theme for Jekyll.