Method Add Add(K, V) Adds the specified key. Declaration public void Add(K key, V val) Parameters Type Name Description K key The key. V val The value.