日期:2014-05-17 浏览次数:20725 次
class Program
{
private static void Main(string[] args)
{
var obj = new RefObject();
obj.Flag = "csharp";
var newobj = obj;
obj = null;
Console.WriteLine(newobj.Flag);
Console.ReadLine();
}
}
public class RefObject
{
public string Flag { get; set; }
}