String C#

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		string text = "text";
		text = ChangeText(text);
		Console.WriteLine(text);
	}
	static string ChangeText(string text) { 
		text = "new text";
		return text;
	}
}
;