Class IndexedSentence
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
SentenceSentenceThe source sentence carried.
SentenceIndexint0-based ordinal in pipeline execution order.
Properties
Sentence
The source sentence carried.
public Sentence Sentence { get; init; }
Property Value
SentenceIndex
0-based ordinal in pipeline execution order.
public int SentenceIndex { get; init; }
Property Value
Methods
GetSentence()
Returns the source Sentence carried by this object.
public Sentence GetSentence()