Table of Contents

Class IndexedSentence

Namespace
Hi.NcParsers
Assembly
HiMech.dll

Minimal ISentenceCarrier pairing a Sentence with its execution-order SentenceIndex. Use when there is no richer host object that already carries the sentence — e.g. CSV-driven runs that go straight from an input line to a Sentence without a SyntaxPiece wrapper.

public record IndexedSentence : ISentenceCarrier, IGetSentence, ISentenceIndexed, IEquatable<IndexedSentence>
Inheritance
IndexedSentence
Implements
Inherited Members
Extension Methods

Constructors

IndexedSentence(Sentence, int)

Minimal ISentenceCarrier pairing a Sentence with its execution-order SentenceIndex. Use when there is no richer host object that already carries the sentence — e.g. CSV-driven runs that go straight from an input line to a Sentence without a SyntaxPiece wrapper.

public IndexedSentence(Sentence Sentence, int SentenceIndex)

Parameters

Sentence Sentence

The source sentence carried.

SentenceIndex int

0-based ordinal in pipeline execution order.

Properties

Sentence

The source sentence carried.

public Sentence Sentence { get; init; }

Property Value

Sentence

SentenceIndex

0-based ordinal in pipeline execution order.

public int SentenceIndex { get; init; }

Property Value

int

Methods

GetSentence()

Returns the source Sentence carried by this object.

public Sentence GetSentence()

Returns

Sentence