摘要: 索引器Indexers C#引入了一个索引器(Indexers)的功能,它能让我们像处理数组一样处理对象。在C#社区中,我们又把它叫做“智能数组(smart arrays)”。定义C#索引器就像定义属性一样方便。(这里“属性”指property,.) 下面是它的结构 this [argument list] ...{ get ...{ // Get codes goes here } ... 阅读全文
posted @ 2009-01-06 05:45 funnyzak 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 可以运行一下试试~你就会明白 using System;using System.Collections.Generic;using System.Text; namespace test{ class Program { static void Main(string[] args) { FlowB flowB = ... 阅读全文
posted @ 2009-01-06 04:49 funnyzak 阅读(127) 评论(0) 推荐(0) 编辑