00a4a4de 697c e67c bcaf 039a142d864e - akesseler/Plexdata.CsvParser GitHub Wiki

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

This method tries to load all values from given stream 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(
	Stream stream,
	CsvSettings settings
)

Parameters

 

stream
Type: System.IO.Stream
The stream to read data from.
settings
Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used to process stream data.

Return Value

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

Exceptions

 

Exception Condition
ArgumentNullException This exception is thrown either if given stream or if given settings is invalid.
ArgumentException This exception is thrown in case of given stream does not have read access.

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** ⚠️