Hashtable.ContainsKey 包含键
function ContainsKey (key : object) : bool
Description描述
Determines whether the Hashtable contains a specific key.
确定哈希表中是否包含一个指定的键。
// Searchs for a key on the hash table
//在哈希表上搜索一个键
var h : Hashtable;
h = new Hashtable();
h.Add("1","one");
h.Add("2","two");
if(h.ContainsKey("1")) {
Debug.Log("Key '1', has been found!");
}
最后修改:2011年3月10日 Thursday 16:54