Mono Class Library: System.String Overview | Members

System.String.Clone Method

Returns a reference to the current instance of string. [Edit]

public object Clone ()

Returns

A reference to the current instance of string. [Edit]

Remarks

Note:

string.Clone does not generate a new string instance. Use the string.Copy(string) or string.CopyTo(int, Char[], int, int) method to create a separate string object with the same value as the current instance.

This method is implemented to support the ICloneable interface.

[Edit]

Requirements

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