千
千中元
Unregistered / Unconfirmed
GUEST, unregistred user!
不用编译器,看看输出地引用类型地String S2是什么?
using System;
class StringExample
{
public static int Main()
{
string s1 = "A String";
string s2 = s1;
s1 = "Another string";
Console.WriteLine("s2 is " + s2);
return 0;
}
}
using System;
class StringExample
{
public static int Main()
{
string s1 = "A String";
string s2 = s1;
s1 = "Another string";
Console.WriteLine("s2 is " + s2);
return 0;
}
}