C# string reference type?

I know that “string” in C# is a reference type. This is on MSDN. However, this code doesn’t work as it should then: class Test { public static void Main() { string test = “before passing”; Console.WriteLine(test); TestI(test); Console.WriteLine(test); } public static void TestI(string test) { test = “after passing”; } } The output should … Read more