Imports System.Text
Module Module1
Sub Main()
' Create new StringBuilder and initialize it.
Dim builder As New StringBuilder(
"This is an example.")
Console.WriteLine(builder)
' Replace string in StringBuilder.
builder.Replace(
"This",
"Here")
Console.WriteLine(builder)
' Insert into StringBuilder.
builder.Insert(0,
"Sentence: ")
Console.WriteLine(builder)
End Sub
End Module
This is an example.
Here is an example.
Sentence: Here is an example.