C# String Clone
Description
String Clone
returns a reference to this instance of String.
Syntax
String.Clone
has the following syntax.
public Object Clone()
Returns
String.Clone
method returns This instance of String.
Example
The following code shows how to use String.Clone
method.
/*from ww w .j ava2s .c om*/
using System;
public class MainClass{
public static void Main(String[] argv){
String s = "java2s.com";
System.Console.WriteLine(s.Clone());
}
}
The code above generates the following result.