Table of Contents

Struct ExcelColumnSchema

Namespace
ExcelReader.Core.Reader.Schema
Assembly
ExcelReader.Core.dll

One column's guessed shape, as returned by InferSchema(IExcelSheet, SchemaInferenceOptions?).

public readonly record struct ExcelColumnSchema : IEquatable<ExcelColumnSchema>
Implements
Inherited Members

Remarks

This is a guess over a bounded sample, not a guarantee about the whole sheet — verify it fits before trusting it. Feed it into Build<T>(Action<ExcelRowMapBuilder<T>>, ExcelParserOptions?) to build a real map.

Properties

Index

Gets the column's zero-based position in the sheet.

public int Index { get; init; }

Property Value

int

IsNullable

Gets a value indicating whether any sampled row left this column empty.

public bool IsNullable { get; init; }

Property Value

bool

Name

Gets the column's trimmed header text, or null when the header row was skipped or that header cell was blank — in which case the column is addressable only by Index.

public string? Name { get; init; }

Property Value

string

Type

Gets the value type every sampled cell in this column agreed on.

public ExcelColumnType Type { get; init; }

Property Value

ExcelColumnType