API Reference

Class

CsvMappingExtensions

Namespace OfficeIMO.CSV
Assembly OfficeIMO.CSV
Modifiers static

Typed projections over a materialized CSV document.

Inheritance

  • Object
  • CsvMappingExtensions

Methods

RowsAsParallel``1 3 overloads
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = null) #
Returns: IEnumerable<T>

Projects rows in bounded parallel batches by matching CSV headers to writable public properties. Results retain source order.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument requiredposition: 0
options OfficeIMO.Data.ParallelRowMappingOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, Action<RowMapper<T>> configure, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = null) #
Returns: IEnumerable<T>

Projects rows in bounded parallel batches using explicit, AOT-friendly column assignments. Results retain source order.

Type Parameters

T

Parameters

arg1 OfficeIMO.CSV.CsvDocument requiredposition: 0
arg2 System.Action{OfficeIMO.Data.RowMapper{``0}} requiredposition: 1
arg3 OfficeIMO.Data.ParallelRowMappingOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = null optionalposition: 3
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, Func<IDataRecord, T> factory, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = null) #
Returns: IEnumerable<T>

Projects rows in bounded parallel batches with a caller-supplied factory. Results retain source order.

Type Parameters

T

Parameters

arg1 OfficeIMO.CSV.CsvDocument requiredposition: 0
arg2 System.Func{System.Data.IDataRecord,``0} requiredposition: 1
arg3 OfficeIMO.Data.ParallelRowMappingOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = null optionalposition: 3
RowsAs``1 3 overloads
public static IEnumerable<T> RowsAs<T>(CsvDocument document) #
Returns: IEnumerable<T>

Projects rows by matching CSV headers to writable public properties. Matching is case-insensitive and also ignores spaces and punctuation.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument requiredposition: 0
public static IEnumerable<T> RowsAs<T>(CsvDocument document, Action<RowMapper<T>> configure) #
Returns: IEnumerable<T>

Projects rows using explicit, AOT-friendly column assignments.

Type Parameters

T

Parameters

arg1 OfficeIMO.CSV.CsvDocument requiredposition: 0
arg2 System.Action{OfficeIMO.Data.RowMapper{``0}} requiredposition: 1
public static IEnumerable<T> RowsAs<T>(CsvDocument document, Func<IDataRecord, T> factory) #
Returns: IEnumerable<T>

Projects rows with a caller-supplied factory. This overload supports constructor-bound and other models without a public parameterless constructor.

Type Parameters

T

Parameters

document OfficeIMO.CSV.CsvDocument requiredposition: 0
Document whose rows are projected.
factory System.Func{System.Data.IDataRecord,``0} requiredposition: 1
Creates one model instance from the current row.