internal TrackedString(TrackedStringManager source, int startIndex, int endIndex) { this.Source = source; this.OffsetInSource = startIndex; if (!source.IsInPlaceholderMode) { // Note: The point of calling SetValueInternal is that derived instances // can then process it. At this point, the derived instance constructor // hasn't been called so it won't be used. m_value = source.Text.SubstringWithIndices(startIndex, endIndex); } }
/// <summary> /// (Internal) Builds a TrackedString - To use in AppendNew (does not trigger any updates or lookup into source). /// </summary> internal TrackedString(TrackedStringManager source, int startIndex, string value) { this.Source = source; this.OffsetInSource = startIndex; m_value = value; }
internal TrackedString(TrackedStringManager source) { this.Source = source; this.OffsetInSource = -1; m_value = null; }