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