摘要: 一个类型定义一个索引器: public class Example { //定义一个索引器 private Int32 _str; public Int32 this[Boolean b] { get { return _str; } set { _str = value; } } }一个类型可以有多个索引器,如下: public class Example { //定义一个索引器 private Int32 _int; ... 阅读全文
posted @ 2012-02-06 11:23 challengesoflife 阅读(638) 评论(0) 推荐(0) 编辑