API Reference
CsvMappingExtensions
Typed projections over a materialized CSV document.
Inheritance
- Object
- CsvMappingExtensions
Methods
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = null) #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
- options OfficeIMO.Data.ParallelRowMappingOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, Action<RowMapper<T>> configure, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = null) #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
- arg2 System.Action{OfficeIMO.Data.RowMapper{``0}}
- arg3 OfficeIMO.Data.ParallelRowMappingOptions = null
- arg4 System.Threading.CancellationToken = null
public static IEnumerable<T> RowsAsParallel<T>(CsvDocument document, Func<IDataRecord, T> factory, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = null) #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
- arg2 System.Func{System.Data.IDataRecord,``0}
- arg3 OfficeIMO.Data.ParallelRowMappingOptions = null
- arg4 System.Threading.CancellationToken = null
public static IEnumerable<T> RowsAs<T>(CsvDocument document) #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
public static IEnumerable<T> RowsAs<T>(CsvDocument document, Action<RowMapper<T>> configure) #IEnumerable<T>Projects rows using explicit, AOT-friendly column assignments.
Type Parameters
- T
Parameters
- arg1 OfficeIMO.CSV.CsvDocument
- arg2 System.Action{OfficeIMO.Data.RowMapper{``0}}
public static IEnumerable<T> RowsAs<T>(CsvDocument document, Func<IDataRecord, T> factory) #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
- Document whose rows are projected.
- factory System.Func{System.Data.IDataRecord,``0}
- Creates one model instance from the current row.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object