Class CsvPropertyCustom<T, V>
Map a column by an action
Inherited Members
Namespace: FluentCsvMachine.Property
Assembly: library.dll
Syntax
public class CsvPropertyCustom<T, V> : CsvPropertyBase
Type Parameters
Name | Description |
---|---|
T | Type of the entity |
V | Type of the column (string, int, ...) |
Constructors
| Improve this Doc View SourceCsvPropertyCustom(Type, Action<T, V>)
Custom action based on a column property
Declaration
public CsvPropertyCustom(Type propertyType, Action<T, V> customAction)
Parameters
Type | Name | Description |
---|---|---|
Type | propertyType | |
Action<T, V> | customAction |
Methods
| Improve this Doc View SourceCustomAction(T, V)
Defines a custom mapping based on a CSV column
Declaration
public void CustomAction(T entity, V parsedValue)
Parameters
Type | Name | Description |
---|---|---|
T | entity | Entity for value assignment |
V | parsedValue | Parsed CSV field |