> 英语 >
c# 集合以对象方式储存元素,
An array declares the type of the elements that it holds,whereas a collection doesn’t
This is because the collections store their elements as objects
这句话怎么理解?这里他说集合以objects方式储存元素,怎么理解呢?
人气:414 ℃ 时间:2020-06-04 14:20:22
解答
传统的数组里面存放的都是值类型,比如 int[],string[];
集合里面存放obeject,直译过来就是“对象”.比如 collection[].
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版