Version: 2017.3

Hashtable.Add(object, object)

切换到手册

描述

将具有指定键和值的元素添加到哈希表中。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Hashtable h; void Example() { h = new Hashtable(); h.Add(1, "one"); h.Add(2, "two"); } }