This wraps the .NET StringBuilder in a slightly more easy-to-use format.
コード例 #1
0
        /// <summary>
        /// Appends an <see cref="ExtendedStringBuilder"/> to the current <see cref="ExtendedStringBuilder"/>.
        /// </summary>
        /// <param name="e">The <see cref="ExtendedStringBuilder"/> to append.</param>
        /// <returns>The current <see cref="ExtendedStringBuilder"/> object.</returns>
        public ExtendedStringBuilder Append(ExtendedStringBuilder e)
        {
            _stringBuilder.Append(e);
            HasBeenAppended = true;

            return(this);
        }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="ExtendedStringBuilder"/> with the provided <see cref="ExtendedStringBuilder"/> as a base.
 /// </summary>
 /// <param name="baseBuilder">The <see cref="ExtendedStringBuilder"/> containing the base string to intialize to.</param>
 public ExtendedStringBuilder(ExtendedStringBuilder baseBuilder)
     : this(baseBuilder.Length)
 {
     Append(baseBuilder);
     HasBeenAppended = false;
 }
コード例 #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="ExtendedStringBuilder"/> with the provided <see cref="ExtendedStringBuilder"/> as a base.
 /// </summary>
 /// <param name="baseBuilder">The <see cref="ExtendedStringBuilder"/> containing the base string to intialize to.</param>
 public ExtendedStringBuilder(ExtendedStringBuilder baseBuilder)
     : this(baseBuilder.Length)
 {
     Append(baseBuilder);
     HasBeenAppended = false;
 }
コード例 #4
0
        /// <summary>
        /// Appends an <see cref="ExtendedStringBuilder"/> to the current <see cref="ExtendedStringBuilder"/>.
        /// </summary>
        /// <param name="e">The <see cref="ExtendedStringBuilder"/> to append.</param>
        /// <returns>The current <see cref="ExtendedStringBuilder"/> object.</returns>
        public ExtendedStringBuilder Append(ExtendedStringBuilder e)
        {
            _stringBuilder.Append(e);
            HasBeenAppended = true;

            return this;
        }