Hashtable.Add 添加

function Add (key : Object, value : Object) : void

Description描述

Adds an element with the specified key and value into the Hashtable.

添加一个带有指定键和值元素到哈希表。

// Adds 2 elements to a hash table.
//添加2个元素到哈希表

var h : Hashtable;
h = new Hashtable();
h.Add(1,"one");
h.Add(2,"two");
最后修改:2011年3月10日 Thursday 16:55

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。