Interface ISequenceValidator<T>
public interface ISequenceValidator<in T>
Type Parameters
T
Methods
ValidSequence(int, T[], string[], string)
Determines whether a particular continuation of a sequence is valid. This is used to restrict invalid sequences such as those used in start/continue tag-based chunking or could be used to implement tag dictionary restrictions.
bool ValidSequence(int i, T[] inputSequence, string[] outcomesSequence, string outcome)
Parameters
iintThe index in the input sequence for which the new outcome is being proposed.
inputSequenceT[]The input sequence.
outcomesSequencestring[]The outcomes so far in this sequence.
outcomestringThe next proposed outcome for the outcomes sequence.
Returns
- bool
true is the sequence would still be valid with the new outcome, false otherwise.