Table of Contents

Delegate ExcelCellReader<TValue>

Namespace
ExcelReader.Core.Parser
Assembly
ExcelReader.Core.dll

Reads a non-empty cell into a value of type TValue. Every built-in reader exposed by ExcelCellReaders matches this shape, so a source-generated or hand-written ExcelRowMapBuilder<T> map can plug either a built-in reader or a custom one into Property<TValue>(string[], ExcelCellReader<TValue>, ExcelPropertySetter<T, TValue>, bool, bool).

public delegate bool ExcelCellReader<TValue>(in Cell cell, in ExcelRowContext context, out TValue value)

Parameters

cell Cell

The cell to read; callers only invoke this for a non-empty cell.

context ExcelRowContext

The date system and format provider to convert with.

value TValue

The read value, when this method returns true.

Returns

bool

true if the cell was read successfully.

Type Parameters

TValue

The value type the cell is read into.