IdTable<T>

References
public sealed class IdTable<T>
A fast hashset for Guid keys.
T

Constructors

IdTable

#
public IdTable()
Create a new, empty hash set.

Methods

Add

#
public bool Add(Guid id, T value)
Add a new value to this hash set.
id (Guid)
value (T)
True if element was added. False if ID ws already part of this hash set.

Duplicate

#
public IdTable<T> Duplicate()
Create a shallow copy of this hash set. Value will not be duplicated.

Find

#
public bool Find(Guid id, out T value)
Add a new value to this hash set.
id (Guid)
value (out T)
True if element was added. False if ID ws already part of this hash set.

Overwrite

#
public void Overwrite(Guid id, T value)
Add a new value to this hash set, or overwrite an existing one with the same id.
id (Guid)
value (T)

Remove

#
public bool Remove(Guid id)
Remove a value from this hash set.
id (Guid)