阅读背景:

为什么在。net中装箱是一种原始的值类型,不像Java?

来源:互联网 

Consider:

考虑:

int a = 42;

// Reference equality on two boxed ints with the same value
Console.WriteLine( (object)a == (object)a ); // False

// Same thing - listed only for clarity
Console.WriteLine(ReferenceEquals(a, a));  // False
int a = 42;

// Reference equ



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: