MultilineTextDiff/VerySimpleRtfBuilder.cs
/// <summary>
/// Remove all format changes up to given child instance.
/// </summary>
/// <param name="child">Child instance to be returned formating.</param>
Remove all format changes up to given child instance.
Remove all format changes up to given child instance .
private void Unregister(VerySimpleRtfBuilder child)
    {
      if (child is null)
      {
        throw new ArgumentNullException(nameof(child));
      }
      if (this.formatList.Count == 0)
      {
        return;
      }
      int i = 0;
      for (; i < this.formatList.Count; i++)
      {
        if (ReferenceEquals(this.formatList[i], child))
        {
          break;
        }
      }
      while (i < this.formatList.Count)
      {
        if (this.formatList[i].endBlockOnStyleClose)
        {
          this.rtf.Append('}');
        }
        this.formatList.RemoveAt(i);
      }
      this.fontConfig.ActiveInstance = this;
    }
private void Unregister ( VerySimpleRtfBuilder child ) { if ( child is null ) { throw new ArgumentNullException ( nameof ( child ) ) ; } if ( this . formatList . Count == 0 ) { return ; } int i = 0 ; for ( ; i < this . formatList . Count ; i ++ ) { if ( ReferenceEquals ( this . formatList [ i ] , child ) ) { break ; } } while ( i < this . formatList . Count ) { if ( this . formatList [ i ] . endBlockOnStyleClose ) { this . rtf . Append ( ' ' ) ; } this . formatList . RemoveAt ( i ) ; } this . fontConfig . ActiveInstance = this ; }
Remove all format changes up to given child instance.
Remove all format changes up to given child instance .
child
VerySimpleRtfBuilder
Child instance to be returned formating.
Child instance to be returned formating .