ProAnswers.org

In how many ways we can create new copies of an existing string in C#?

1 Like

There are two ways:

1. Using overloaded = operator like - string s2 = s1;


2. Using the static Copy method like - string s2 = string.Copy(s1);