Home » C# String Clone() method

C# String Clone() method

by Online Tutorials Library

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 

You may also like