19.3 Array element access

来源:互联网 发布:java构造函数示例 编辑:程序博客网 时间:2024/05/16 06:51
Array elements are accessed using element-access expressions (§14.5.6.1) of
the form A[I1, I2, ?, IN],
where A is an expression of an array type and each IX is an expression of
type int, uint, long, ulong, or
of a type that can be implicitly converted to one or more of these types.
The result of an array element access
is a variable, namely the array element selected by the indices.
The elements of an array can be enumerated using a foreach statement (§15.8.
4).