3 ms·
How about this one: int i = 1; Object.ReferenceEquals(i, i); What does it return?
by javery 17y ago
How about this one:
int i = 1;
Object.ReferenceEquals(i, i);
What does it return?
- TeHCrAzY 17y agoIt's going to box them into objects, which will cause it to return false. object i = 0; //object, so we will cause no boxing Object.ReferenceEquals(i, i);//now refering to the same objects, returns true;