Net-informations.com
SiteMap  | About    

How to VB.NET String.Clone()

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

Public Function Clone() As Object

Returns:

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()
        MsgBox(clonedString)
    End Sub
End Class

When you run this program you ill get the same content of the first string "Clone() Test"







net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.