Javatpoint Logo
Javatpoint Logo

C# String Clone()

The C# Clone() method is used to clone a string object. It returns another copy of same data. The return type of Clone() method is object.

Signature

Parameters

It does not take any parameter.

Returns

It returns a reference.


C# String Clone () method example

Output:

Hello
Hello




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA