Struct ExcelRowContext
Settings a cell reader, converter or row parser needs to convert a cell, handed to every ExcelCellReader<TValue>, ExcelRowParser<TModel> and TryConvert(in Cell, in ExcelRowContext, out T) call.
public readonly record struct ExcelRowContext : IEquatable<ExcelRowContext>
- Implements
- Inherited Members
Remarks
Passed by in reference. New settings arrive as new properties, so a converter written against this type keeps compiling. Construct one with an object initializer to unit-test a converter; default means the 1900 date system and the invariant culture.
Properties
FormatProvider
The format provider to use when parsing cell text. Defaults to InvariantCulture.
public IFormatProvider FormatProvider { get; init; }
Property Value
IsDate1904
True when the source workbook uses the 1904 date system.
public bool IsDate1904 { get; init; }