Class StringBuilderStringSegmentExtensions
Provides a set of extension methods for StringBuilder to work with string segments.
Inheritance
Namespace: System.Text
Assembly: Nuqleon.StringSegment.dll
Syntax
public static class StringBuilderStringSegmentExtensions : Object
Methods
Append(StringBuilder, StringSegment)
Appends a copy of the specified string to this instance.
Declaration
public static StringBuilder Append(this StringBuilder builder, StringSegment value)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | builder | The string builder to append to. |
StringSegment | value | The string to append. |
Returns
Type | Description |
---|---|
System.Text.StringBuilder | A reference to this instance after the append operation has completed. |
Append(StringBuilder, StringSegment, Int32, Int32)
Appends a copy of the specified substring to this instance.
Declaration
public static StringBuilder Append(this StringBuilder builder, StringSegment value, int startIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | builder | The string builder to append to. |
StringSegment | value | The string that contains the substring to append. |
System.Int32 | startIndex | The starting position of the substring within value. |
System.Int32 | count | The number of characters in value to append. |
Returns
Type | Description |
---|---|
System.Text.StringBuilder | A reference to this instance after the append operation has completed. |
AppendLine(StringBuilder, StringSegment)
Appends a copy of the specified string followed by the default line terminator to the end of the specified StringBuilder object.
Declaration
public static StringBuilder AppendLine(this StringBuilder builder, StringSegment value)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | builder | The string builder to append to. |
StringSegment | value |
Returns
Type | Description |
---|---|
System.Text.StringBuilder | A reference to this instance after the append operation has completed. |