GH_Chunk.ChunkKeyedCollection

References
Represents a collection of chunks with associated IDs

Constructors

ChunkKeyedCollection

#
Create a new collection.
public ChunkKeyedCollection()

Properties

Count

#
Returns the amount in the collection.
public int Count { get; }

Methods

Add

#
Adds a new chunk.
public void Add(
chunk
The chunk to be added.
)

Clear

#
Removes all chunks from the collection.
public void Clear()

GetEnumerator

#
Gets an enumerator that iterates over all chunks in the collection.
public IEnumerator<GH_Chunk> GetEnumerator()
The enumerator.

Remove

#
Removes a chunk.
public bool Remove(
chunk
The chunk to be removed.
)
True if the operation was successful; false otherwise.

Remove

#
Removes an ID.
public bool Remove(
id
The ID to be removed.
)
True if the operation was successful; false otherwise.
Explicit

IEnumerable.GetEnumerator

#
IEnumerator IEnumerable.GetEnumerator()

TryGetValue

#
Try and find the chunk that belongs to a given ID.
public bool TryGetValue(
id,
ID to look for.
chunk
Chunk result.
)
True is a chunk was found, false if otherwise.