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