Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  string  >  Clone()
string class : Clone() method

Description

Gets a new instance with the same value as the calling instance.

Syntax

stringInstance.Clone()

Arguments

None

Return value

ClassDescription
stringA 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

Copyright © Rice All rights reserved.