System.String.Clone Method

Returns a reference to this instance of string.


public object Clone ()


This instance of string.


The return value is not an independent copy of this instance; it is simply another view of the same data. Use the string.Copy(string) or string.CopyTo(int, Char[], int, int) method to create a separate string object with the same value as this instance.

Because the string.Clone method simply returns the existing string instance, there is little reason to call it directly.


Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,