OrderedSequence<T> represents a sequence field whose elements are maintained in order and can be accessed either by position or by key range. In C# applications it is typically used as the ordering dimension of a time series, for example a sequence of timestamps or trading days.
public class OrderedSequence<T> : UnorderedSequence<T>
{
public Sequence Search(object low, SelectBoundary lowBoundary,
object high, SelectBoundary highBoundary);
}
UnorderedSequence<T>, it provides range search by element value.[Sequence(Order=SequenceOrder.Ascending)] or descending variant. In practice the ordered sequence usually acts as the key sequence for associated value sequences in the same object.OrderedSequence<T> inherits the update and positional operations of UnorderedSequence<T>, including append, insert, delete, count, projection, subsequence extraction, and conversion to a Sequence iterator.Sequence iterator representing the matching positions. Use this iterator directly or project related sequences through it.T. If a boundary is SelectBoundary.Open, the corresponding bound value is ignored.Sequence iterator over the matching ordered-sequence positions. Typical follow-up operations are FirstPosition, LastPosition, projection of another sequence, or direct analytical processing of the matching slice.Day is searched first, then related unordered sequences such as Price are projected using the returned Sequence. This is the standard way to select an interval and operate on the aligned values.OrderedSequence<T> itself is a field wrapper and does not implement IDisposable. The Sequence returned by Search() does hold native resources and should be closed or disposed when no longer needed.T indicates the logical element type stored in the ordered sequence, for example uint, DateTime, or another supported sequence element type.