亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

您現在的位置是:蟲蟲下載站 > 資源下載 > Windows編程 > Delphi 泛型容器 TDictionary 的用法 Demo

Delphi 泛型容器 TDictionary 的用法 Demo

  • 資源大小:80 K
  • 上傳時間: 2015-07-01
  • 上傳用戶:pcplayer
  • 資源積分:2 下載積分
  • 標      簽: Delphi 泛型

資 源 簡 介

Collection of key-value pairs. 

TDictionary represents a generic collection of key-value pairs. 

This class provides a mapping from a collection of keys to a collection of values. When you create a TDictionary object, you can specify various combinations of initial capacity, equality operation, and initial content. 

You can add a key that is associated with a corresponding value with the Add or AddOrSetValue methods. You can remove entries with Remove or Clear, which removes all key-value pairs. Adding or removing a key-value pair and looking up a key are efficient, close to O(1), because keys are hashed. A key must not be nil (though a value may be nil) and there must be an equality comparison operation for keys. 

You can test for the presence or keys and values with the TryGetValue, ContainsKey and ContainsValue methods. 

The Items property lists all Count dictionary entries. You can also set and get values by indexing the Items property. Setting the value this way overwrites any existing value. 

The class TObjectDictionary inherits from TDictionary and provides an automatic mechanism for freeing objects removed from dictionary entries. 

相 關 資 源

主站蜘蛛池模板: 遵化市| 志丹县| 甘谷县| 迭部县| 新乐市| 宁强县| 合阳县| 新沂市| 融水| 鹿泉市| 大埔区| 桂东县| 新蔡县| 柳林县| 本溪| 丰顺县| 冷水江市| 乌拉特中旗| 全椒县| 梁河县| 商水县| 清水县| 通化市| 青岛市| 乐都县| 普格县| 海原县| 余江县| 滁州市| 平泉县| 木兰县| 仲巴县| 蒲江县| 天峨县| 孟津县| 余庆县| 玉林市| 江华| 长宁区| 呼伦贝尔市| 西城区|