Javatpoint Logo
Javatpoint Logo

C# String Copy()

The C# Copy() method is used to create a new instance of String with the same value as a specified String. It is a static method of String class. Its return type is string.

Signature

Parameter

str: it takes a string argument which is used to create a copy of specified string.

Return

It returns string object.


C# String Copy() Method Example

Output:

Hello
Hello
Next TopicC# String CopyTo()





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA