下面的代码是如何打印的true?
true
string x = new string(new char[0]); string y = new string(new char[0]); Console.WriteLine(object.ReferenceEquals(x,y));
我希望这会打印False,因为我希望构造两个单独的对象,然后比较它们的引用。
False
c#
c# ×1