StringBuilderPolyfillExtensionInsert Method
Inserts the content of a read-only character span at the specified index
position into builder.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static StringBuilder Insert(
this StringBuilder builder,
int index,
ReadOnlySpan<char> value
)
<ExtensionAttribute>
Public Shared Function Insert (
builder As StringBuilder,
index As Integer,
value As ReadOnlySpan(Of Char)
) As StringBuilder
public:
[ExtensionAttribute]
static StringBuilder^ Insert(
StringBuilder^ builder,
int index,
ReadOnlySpan<wchar_t> value
)
[<ExtensionAttribute>]
static member Insert :
builder : StringBuilder *
index : int *
value : ReadOnlySpan<char> -> StringBuilder
- builder StringBuilder
- The StringBuilder into which the characters
are inserted.
- index Int32
- The zero-based index in builder at which
the characters are inserted.
- value ReadOnlySpanChar
- The character span to insert.
StringBuilderA reference to
builder after the insert operation is
completed.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).