Class
CsvMappingExtensions
OfficeIMO.CSV
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
- parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null
- options OfficeIMO.CSV.CsvReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- configure System.Action<OfficeIMO.Data.RowMapper<T?>>
- parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null
- options OfficeIMO.CSV.CsvReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- factory System.Func<System.Data.IDataRecord, T?>
- parallelOptions OfficeIMO.Data.ParallelRowMappingOptions? = null
- options OfficeIMO.CSV.CsvReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- options OfficeIMO.CSV.CsvReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- configure System.Action<OfficeIMO.Data.RowMapper<T?>>
- options OfficeIMO.CSV.CsvReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- factory System.Func<System.Data.IDataRecord, T?>
- options OfficeIMO.CSV.CsvReaderOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>