# GH_Chunk.ChunkKeyedCollection class

Namespace: [GH_IO.Serialization](https://developer.rhino3d.com/api/gh1/namespace/gh-io.serialization.md) · Assembly: [GH_IO](https://developer.rhino3d.com/api/gh1/assembly/gh-io.md)

```cs
public class GH_Chunk.ChunkKeyedCollection : IEnumerable<GH_Chunk>
```

Represents a collection of chunks with associated IDs

## Constructors

- [GH_Chunk.ChunkKeyedCollection](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/ctor.md): Create a new collection.

## Properties

- [Count](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/count.md): Returns the amount in the collection.

## Methods

- [Add](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/add.md): Adds a new chunk.
- [Clear](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/clear.md): Removes all chunks from the collection.
- [GetEnumerator](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/getenumerator.md): Gets an enumerator that iterates over all chunks in the collection.
- [Remove](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/remove.md): (2 overloads) Removes a chunk.
- [IEnumerable.GetEnumerator](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/system-collections-ienumerable-getenumerator.md)
- [TryGetValue](https://developer.rhino3d.com/api/gh1/type/gh-io.serialization.gh-chunk.chunkkeyedcollection/trygetvalue.md): Try and find the chunk that belongs to a given ID.
