论坛


2011年1月5日 星期三

学用 ASP.Net 之 System.Collections.SortedList 类

万一| 万一的 Delphi 博客 |22:09:00

SortedList 是能自动排序的 "Key/Value" 列表类(排序是根据 Key), 并能通过索引访问元素.它像是 Hashtable(哈希表)的升级, 它们的每个元素都是视为一个 DictionaryEntry(Key/Value) 结构体.正因为它比 Hashtable 多出了排序和索引, 所以效率不及 Hashtable.主要成员:...

Delphi Labs: First DataSnap Step-By-Step Tutorial is Live

Pawel Glowacki| Pawel Glowacki |20:50:55

Today I am starting "Delphi Labs’! A new serie of Delphi tutorials for everybody to learn and enjoy. Every tutorial is going to consist of a technical article with instructions how to build a sample project, source code and a video episode. ...

学用 ASP.Net 之 System.Collections.Queue 与 Stack 类

万一| 万一的 Delphi 博客 |16:31:00

Queue(队列)是先进先出的集合; Stack(堆栈)是后进先出的集合.Queue 的主要成员:/* 属性 */ Count; //元素数 /* 方法 */ Clear(); //清空 Contains(); //是否包含 Dequeue(); //出列 Enqueue(); //入列 Peek(); //获取将要出列的Stack 的主要成员:/* ?..

学用 ASP.Net 之 System.Collections.BitArray 类

万一| 万一的 Delphi 博客 |16:19:00

常用成员:/* 属性 */ Count; //只读 Length; //同 Count, 但可读写 /* 方法 */ And(); //与 Get(); //取值 Not(); //取反 Or(); //或 Set(); //赋值 SetAll(); //全部设定为指定值 Xor(); //异或练习://(items)[]、Get()、Set() protected ...

Delphi Labs: DataSnap XE - Simple Calculator Service

Embarcadero| EDN Delphi Feed |05:26:17

Debugging multithreaded applications

Embarcadero| EDN Delphi Feed |04:22:57

学用 ASP.Net 之 System.Collections.Hashtable 类与 DictionaryEntry 结构

万一| 万一的 Delphi 博客 |00:19:00

DictionaryEntry 是包含 Key / Value 一对值的简单结构;Hashtable(哈希表)是一组 Key / Value 的集合, 准确地讲是一组 DictionaryEntry 的集合.DictionaryEntry 简例:protected void Button1_Click(object sender, EventArgs e) { DictionaryEntry d1; d1.Ke...