String - Copy

Creates a new instance of with the same value as a specified .

Try it

public static void Main()
{
    string strA = "abc";
	string strB = "def";

    // C# Extension Method: String - Copy
	var result = strA.Copy();
	
	Console.WriteLine(result);
}

View Source