string class : Clone() method
Description
Gets a new instance with the same value as the calling instance.
Syntax
stringInstance.Clone()
Arguments
None
Return value
Class | Description |
string | A new instance with the same value as the calling instance. |
Sample code
//anyString is a instance of string type.
string newInstance = anyString.Clone();
Notes
None
Links for reference
None