5716adc5 fa43 5ee4 359d 775e454f2b7a - akesseler/Plexdata.CsvParser GitHub Wiki

CsvImporter(TInstance).Load Method (String, CsvSettings)

This method tries to load all values from given file using given settings.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public static IEnumerable<TInstance> Load(
	string filename,
	CsvSettings settings
)

Parameters

 

filename
Type: System.String
The fully qualified path of the input file.
settings
Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used to process file data.

Return Value

Type: IEnumerable(TInstance)
A list of classes of TInstance.

Exceptions

 

Exception Condition
ArgumentException This exception is thrown in case of an invalid file name.
FileNotFoundException This exception is thrown in case of a file with given name does not exist.

Remarks

The settings parameter describes how the data within given file should be processed. For example, users may define the expected culture, the expected file encoding, which separator is used and so on.

See Also

Reference

CsvImporter(TInstance) Class
Load Overload
Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️