System::SequencePosition class

SequencePosition class

Represents the position of an element in a sequence. It wraps a reference to a segment object (usually held by a ReadOnlySequence) and an integer offset into that segment. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

class SequencePosition : public System::Details::BoxableObjectBase

Methods

MethodDescription
Equals(const SequencePosition&) constDetermines whether the current SequencePosition and the specified one represent the same position.
GetHashCode() constReturns a hash code for the current SequencePosition.
GetInteger() constGets the integer offset that accompanies the referenced segment.
GetObject() constGets the segment reference this position points into.
SequencePosition()Constructs a default SequencePosition that refers to no segment.
explicit SequencePosition(const SharedPtr<Object>&)Constructs a SequencePosition that identifies the specified segment reference.
SequencePosition(const SharedPtr<Object>&, int32_t)Constructs a SequencePosition that identifies the specified segment reference and an integer offset within that segment.

See Also