CsvHelpers.

ReadRecords<T>(FilePath, ClassMap, CsvHelperSettings) Method

Summary

Reads records from a CSV returning a list of the object type passed. Automapping is used if a Map is configured in settings.
Assembly
Cake.CsvHelper.dll
Namespace
Cake.CsvHelper
Containing Type
CsvHelpers

Syntax

public IEnumerable<T> ReadRecords<T>(FilePath csvFile, ClassMap classMap, CsvHelperSettings settings)

Type Parameters

Name Description
T The record type.

Parameters

Name Type Description
csvFile FilePath The CSV file to read.
classMap ClassMap The class map to use, null if not needed.
settings CsvHelperSettings The settings.

Return Value

Type Description
IEnumerable<T> List of defined type.