# Type2Dictionary<T> class

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

```cs
public sealed class Type2Dictionary<T>
```

A dictionary for values associated with type pairs, with build-in derived type fallback.

**Type parameters:**

- `T`

## Properties

- [All](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.type2dictionary-1/all.md)
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.type2dictionary-1/count.md)
- [Derived](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.type2dictionary-1/derived.md)
- [Pure](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.type2dictionary-1/pure.md)

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.type2dictionary-1/add.md): Add a new element to this dictionary.
- [TryGet](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.type2dictionary-1/tryget.md): Try and get the value associated with the given type.
