2010年4月1日

哈希表(HashTable)

摘要: HashTable 通常称为哈希表,它表示键(key)/值(value)对的集合。  1、HashTable 的构造函数:  HashTable() //初始化为0个元素的空实例  HashTable(Int32) //初始化为int32 个元素的新实例  例子:  HashTable myHashTable1 = new HashTable();  HashTable myHashTable2 ... 阅读全文

posted @ 2010-04-01 13:56 laodao1 阅读(179) 评论(0) 推荐(0) 编辑

ref out 和没加这2个参数的区别

摘要: 一、没加入参数例子代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;classApp{publicstaticvoidUseRef(inti){i+=100;Console.WriteLine("i={0}",i);}stat... 阅读全文

posted @ 2010-04-01 09:16 laodao1 阅读(267) 评论(0) 推荐(0) 编辑

导航