关闭

19.2 Array creation

569人阅读 评论(0) 收藏 举报
Array instances are created by array-creation-expressions (§14.5.10.2) or
by field or local variable
declarations that include an array-initializer (§19.6).
When an array instance is created, the rank and length of each dimension are
established and then remain
constant for the entire lifetime of the instance. In other words, it is not
possible to change the rank of an
existing array instance, nor is it possible to resize its dimensions.
An array instance is always of an array type. The System.Array type is an
abstract type that cannot be
instantiated.
Elements of arrays created by array-creation-expressions are always
initialized to their default value
(§12.2).
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:566338次
    • 积分:11489
    • 等级:
    • 排名:第1351名
    • 原创:565篇
    • 转载:0篇
    • 译文:0篇
    • 评论:50条
    文章分类