会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
challengesoflife
博客园
首页
新随笔
联系
订阅
管理
2012年2月6日
.net 索引器
摘要: 一个类型定义一个索引器: 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)
编辑
公告