读书人

C#中目录跟数组的比较

发布时间: 2012-08-02 11:35:26 作者: rapoo

C#中索引跟数组的比较

索引跟数组的比较

? 索引和数组的比较
 索引可以使用非整型参数
 索引可以被重载
 索引可以是私有的
 索引不能有ref/out 型参数
struct Matrix
{
...
public double this [int row, int col]
{
get { ... }
set { ... }
}
public Row this [int row]
{
get { ... }
set { ... }
}
...
}

推荐阅读:http://www.taoche.com/buycar/serial/dibadaiyage/

读书人网 >C#

热点推荐