Skip to main content

CsvColumnMapping

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

Maps a CSV column to a JSON output property with type conversion

public record CsvColumnMapping : IEquatable<CsvColumnMapping>

Inheritance ObjectCsvColumnMapping
Implements IEquatable<CsvColumnMapping>

Properties

SourceColumn

Source column name (matched against header row)

public string SourceColumn { get; set; }

Property Value

String

SourceIndex

Source column index (alternative to SourceColumn, zero-based)

public Nullable<int> SourceIndex { get; set; }

Property Value

Nullable<Int32>

TargetProperty

Target JSON property name in the output object

public string TargetProperty { get; set; }

Property Value

String

DataType

Data type for value conversion

public CsvDataType DataType { get; set; }

Property Value

CsvDataType

DateFormat

Date format string for DateTime parsing (e.g. "dd.MM.yyyy")

public string DateFormat { get; set; }

Property Value

String

NumberCulture

Culture name for number parsing (e.g. "de-AT")

public string NumberCulture { get; set; }

Property Value

String

Constructors

CsvColumnMapping()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public CsvColumnMapping()