Hashtable.Count 数量
var Count : int
Description描述
Tells how many elements does the hash table has.
告诉哈希表里有多少元素。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public Hashtable ht;
public void Awake() {
ht = new Hashtable();
Debug.Log("Hashtable has " + ht.Count + " elements.");
}
}
// Prints the number of contents of a new Hashtable
//打印一个新哈希表的内容有多少
var ht : Hashtable;
ht = new Hashtable();
Debug.Log("Hashtable has " + ht.Count + " elements.");
最后修改:2011年3月10日 Thursday 16:11