Table of Contents

Interface IExcelRowMap<T>

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

Implemented by the source generator (feature A) — or by hand, before the generator runs — on the row model type itself, which must be partial. The static abstract member turns "no map was generated for this model" into a compile error (T fails the where T : IExcelRowMap<T> constraint on Generated<T>(ExcelParserOptions?)) instead of a silent runtime fallback to reflection.

public interface IExcelRowMap<T> where T : allows ref struct

Type Parameters

T

The row model type this map configures.

Methods

ConfigureExcelRowMap(ExcelRowMapBuilder<T>)

Configures builder with one binding per mapped property.

public static abstract void ConfigureExcelRowMap(ExcelRowMapBuilder<T> builder)

Parameters

builder ExcelRowMapBuilder<T>

The builder to configure.