日期:2014-05-18 浏览次数:21016 次
索引跟数组的比较
?       索引和数组的比较 
       索引可以使用非整型参数
       索引可以被重载 
       索引可以是私有的 
       索引不能有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/