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

enumerates csv into objects More...

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

Public Member Functions

 CsvReaderEnumerator (string pathfilename, CsvOptions options=null)
 creates an object enumerator from csv pathfilename with given field and decimal separator
More...
 
bool MoveNext ()
 verify if another row is available More...
 
void Reset ()
 restart from first row More...
 
void Dispose ()
 
- Public Member Functions inherited from CsvFile< T >
 CsvFile (string pathfilename, CsvOptions options)
 csv reader/writer base class.
More...
 
 CsvFile (string pathfilename, bool append, CsvOptions options)
 csv reader/writer base class.
More...
 

Properties

Current [get]
 
- Properties inherited from CsvFile< T >
string Pathfilename [get]
 
CsvOptions Options [get]
 
char StringDelimiter [get]
 
char FieldSeparator [get]
 
char DecimalSeparator [get]
 
bool DecimalSeparatorIsInvariant [get]
 
IReadOnlyList< CsvColumnColumns [get]
 
bool AppendMode [get]
 if file exists with size great than 0 then header will not placed else file will overwritten with new starting header,
More...
 

Detailed Description

enumerates csv into objects

Type Constraints
T :class 
T :new() 

Constructor & Destructor Documentation

◆ CsvReaderEnumerator()

CsvReaderEnumerator ( string  pathfilename,
CsvOptions  options = null 
)

creates an object enumerator from csv pathfilename with given field and decimal separator

Member Function Documentation

◆ Dispose()

void Dispose ( )

◆ MoveNext()

bool MoveNext ( )

verify if another row is available

Returns
true if another row are read, false if EOF reached

◆ Reset()

void Reset ( )

restart from first row

Property Documentation

◆ Current

T Current
get

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