# HashTable<T> class

Namespace: [Grasshopper2.Types.Hashing](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.hashing.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class HashTable<T>
```

Provides a simple hash table.

**Type parameters:**

- `T`: Type of data to store.

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/count.md): Gets the number of items stored in this hash table.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/add.md): Adds a value to the table. If a similar hash already exists, the table remains unchanged.
- [Clear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/clear.md): Clear the table. This methods also resets the byte-depth constraint.
- [Contains](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/contains.md): Tests whether a certain hash has been stored in this table.
- [Overwrite](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/overwrite.md): Adds a value to the table. If a similar hash already exists, the old value is overwritten.
- [Remove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/remove.md): Removes an item from this table.
- [TryGetValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.hashing.hashtable-1/trygetvalue.md): Gets the value associated with the specified hash.
