数组是引用类型,但数组中的元素可以用作值类型?

时间:2015-01-22 13:55:49

标签: c#

我在想一个例子,但不确定它是否正确

int[] aa = new int[5]; // so aa is reference type, right?
aa[0]=99; // but aa[0] is value type? so I can use aa[0] just as an int number?

0 个答案:

没有答案