023118a9 07ca 4723 b693 4fac058d2000 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvImporter(TInstance).Load Method (Stream)

This method tries to load all values from given stream.

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
)

Parameters

 

stream
Type: System.IO.Stream
The stream to read data from.

Return Value

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

Exceptions

 

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

Remarks

This method performes loading of data with default settings. Using default settings means that the header is processed, but only if one exist. Further, The information for header processing is taken from column attributes or from property names.

See Also

Reference

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

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