netcore-csv
Public Member Functions | Properties | List of all members
CsvReader< T > Class Template Reference

read data from csv creating a object enumerable. an object template with a property foreach csv column is required with same order as they appears in csv. attributes CsvHeaderAttribute and CsvColumnOrderAttribute can be specified on properties to custommize header and order. More...

Inheritance diagram for CsvReader< T >:
Inheritance graph
[legend]
Collaboration diagram for CsvReader< T >:
Collaboration graph
[legend]

Public Member Functions

 CsvReader (string pathfilename, CsvOptions options=null)
 read csv from given pathfilename with field and decimal separator using templated object properties as descriptor for csv column headers to expect More...
 
void Reset ()
 reset from first row More...
 
IEnumerator< T > GetEnumerator ()
 
void Dispose ()
 dispose stream closing file More...
 

Properties

CsvFile< T > File [get]
 underlying CsvFile More...
 

Detailed Description

read data from csv creating a object enumerable. an object template with a property foreach csv column is required with same order as they appears in csv. attributes CsvHeaderAttribute and CsvColumnOrderAttribute can be specified on properties to custommize header and order.

Type Constraints
T :class 
T :new() 

Constructor & Destructor Documentation

◆ CsvReader()

CsvReader ( string  pathfilename,
CsvOptions  options = null 
)

read csv from given pathfilename with field and decimal separator using templated object properties as descriptor for csv column headers to expect

Member Function Documentation

◆ Dispose()

void Dispose ( )

dispose stream closing file

◆ GetEnumerator()

IEnumerator<T> GetEnumerator ( )

◆ Reset()

void Reset ( )

reset from first row

Property Documentation

◆ File

CsvFile<T> File
get

underlying CsvFile


The documentation for this class was generated from the following file: