Mega Code Archive

 
Categories / VB.Net / Language Basics
 

StringBuilder Remove removes the specified range of characters from this instance

Imports System Imports System.Text Class Sample    Public Shared Sub Main()       Dim str As String   = "The quick brown fox jumps over the lazy dog."       Dim sb As New StringBuilder(str)       Console.WriteLine("{0}", sb.ToString())       sb.Remove(10, 6)        Console.WriteLine("{0}", sb.ToString())    End Sub  End Class