How to VB.NET String.Clone()

The VB.NET String Clone() method returns a reference to this instance of String.


  1. Object : Return the instance of the String.

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        Dim str As String = "Clone() Test"
        Dim clonedString As String
        clonedString = str.Clone()
    End Sub
End Class

When you run this program you ill get the same content of the first string "Clone() Test" (C) 2021    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About