摘要: msdn参考:http://msdn.microsoft.com/zh-cn/library/6x16t2tx(v=VS.80).aspx索引器允许类或结构的实例按照与数组相同的方式进行索引。索引器类似于属性,不同之处在于它们的访问器采用参数。索引器的声明方式public 返回类型 this[index类型 index参数]{ get{ return 返回类型数值;} set{ 字段数组[index参数]=value;}}运用例举using System;using System.Collections.Generic;using System.Linq;using System.Te... 阅读全文
posted @ 2012-05-31 23:25 MadKeX 阅读(239) 评论(0) 推荐(0) 编辑