StringBuilderPolyfillExtensionAppend(StringBuilder, StringBuilder, Int32, Int32) Method

Appends a copy of a sequence of Unicode characters that comes from a StringBuilder to the existing content of builder.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static StringBuilder Append(
	this StringBuilder builder,
	StringBuilder? value,
	int startIndex,
	int count
)

Parameters

builder  StringBuilder
The StringBuilder whose content is changed.
value  StringBuilder
The StringBuilder from which the characters are copied.
startIndex  Int32
The zero-based index in value at which the copy operation starts.
count  Int32
The number of Unicode characters to copy.

Return Value

StringBuilder
A reference to builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

NullReferenceExceptionbuilder is null.
ArgumentOutOfRangeException

startIndex or count are smaller than zero

- or -

startIndex + count is larger than the number of characters in value.

ArgumentNullExceptionvalue is null and the values of startIndex or count are greater than zero.

See Also