Hashtable.ContainsValue 包含值

function ContainsValue (value : object) : void

Description描述

Determines whether the Hashtable contains a specific value.

确定哈希表中是否包含一个指定的值。

// Searchs for a value on the hash table
//在哈希表上搜索一个值

var h : Hashtable;
h = new Hashtable();
h.Add("1","one");
h.Add("2","two");
if(h.ContainsValue("one")) {
	Debug.Log("Value 'one', has been found!");
}
最后修改:2011年3月10日 Thursday 16:35

本脚本参考基于Unity 3.4.1f5

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