Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CsvMappingExtensions

OfficeIMO.CSV

Namespace
OfficeIMO.CSV
Assembly
OfficeIMO.CSV
Source revision
0eef6a5756b9 with working tree changes
Modifiers
static

Typed row projections over a loaded Csv document.

Inheritance

  • object
  • CsvMappingExtensions

Methods

RowsAsParallel``1 3 overloads
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, ParallelRowMappingOptions? parallelOptions = null, CsvReaderOptions? options = null, CancellationToken cancellationToken = default) #

Projects rows in bounded parallel batches, preserving source order.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument required
parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null optional
options OfficeIMO.CSV.CsvReaderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T>
public static IEnumerable<T?> RowsAsParallel<T>(CsvDocument document, Action<RowMapper<T?>> configure, ParallelRowMappingOptions? parallelOptions = null, CsvReaderOptions? options = null, CancellationToken cancellationToken = default) #

Projects rows in bounded parallel batches, preserving source order.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument required
configure System.Action<OfficeIMO.Data.RowMapper<T?>> required
parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null optional
options OfficeIMO.CSV.CsvReaderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T?>
public static IEnumerable<T?> RowsAsParallel<T>(CsvDocument document, Func<IDataRecord, T?> factory, ParallelRowMappingOptions? parallelOptions = null, CsvReaderOptions? options = null, CancellationToken cancellationToken = default) #

Projects rows in bounded parallel batches, preserving source order.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument required
factory System.Func<System.Data.IDataRecord, T?> required
parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null optional
options OfficeIMO.CSV.CsvReaderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T?>
RowsAs``1 3 overloads
public static IEnumerable<T?> RowsAs<T>(CsvDocument document, CsvReaderOptions? options = null, CancellationToken cancellationToken = default) #

Projects rows through the shared data-reader mapping contract.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument required
options OfficeIMO.CSV.CsvReaderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T?>
public static IEnumerable<T?> RowsAs<T>(CsvDocument document, Action<RowMapper<T?>> configure, CsvReaderOptions? options = null, CancellationToken cancellationToken = default) #

Projects rows through the shared data-reader mapping contract.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument required
configure System.Action<OfficeIMO.Data.RowMapper<T?>> required
options OfficeIMO.CSV.CsvReaderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T?>
public static IEnumerable<T?> RowsAs<T>(CsvDocument document, Func<IDataRecord, T?> factory, CsvReaderOptions? options = null, CancellationToken cancellationToken = default) #

Projects rows through the shared data-reader mapping contract.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument required
factory System.Func<System.Data.IDataRecord, T?> required
options OfficeIMO.CSV.CsvReaderOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T?>