Search Results for

    Show / Hide Table of Contents

    Class CsvPropertyCustom<T, V>

    Map a column by an action

    Inheritance
    System.Object
    CsvPropertyBase
    CsvPropertyCustom<T, V>
    Inherited Members
    CsvPropertyBase.IsCustom
    CsvPropertyBase.ColumnName
    CsvPropertyBase.Index
    CsvPropertyBase.PropertyType
    CsvPropertyBase.InputFormat
    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 Source

    CsvPropertyCustom(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 Source

    CustomAction(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

    Extension Methods

    CsvPropertyExtensions.ColumnName(CsvPropertyBase, String)
    CsvPropertyExtensions.InputFormat(CsvPropertyBase, String)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright travelr - MIT License