IdList<T>
A fast dictionary for objects with GUID keys. This type differs from Dictionary(Guid, T) by sacrificing memory for lookup performance. Adding entries may be slower and require more allocations, however finding entries ought to be slightly faster. This collection is not thread-safe and any modifying calls must be made from within a lock statement.
Type parameters:
| T |
Constructors
Properties
Methods
Add
#Add a new instance to this collection. If another instance with the same ID is already part of this collection, nothing will happen.
public void Add()
T
instance
Instance to add.
Set
#Add a new instance to this collection. Any existing instance with a matching key will be overwritten.
public void Set()
T
instance
Instance to add.