Method Remove
Remove(TKey)
Removes a key and its associated value(s).
Declaration
public int Remove(TKey key)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | The key to remove. |
Returns
Type | Description |
---|---|
int | The number of removed key-value pairs. If the key was not present, returns 0. |
Remove<TValueEQ>(TKey, TValueEQ)
Removes all key-value pairs with a particular key and a particular value.
Declaration
public void Remove<TValueEQ>(TKey key, TValueEQ value) where TValueEQ : unmanaged, IEquatable<TValueEQ>
Parameters
Type | Name | Description |
---|---|---|
TKey | key | The key of the key-value pairs to remove. |
TValue |
value | The value of the key-value pairs to remove. |
Type Parameters
Name | Description |
---|---|
TValueEQ | The type of the value. |
Remarks
Removes all key-value pairs which have a particular key and which also have a particular value. In other words: (key AND value) rather than (key OR value).
Remove(NativeParallelMultiHashMapIterator<TKey>)
Removes a single key-value pair.
Declaration
public void Remove(NativeParallelMultiHashMapIterator<TKey> it)
Parameters
Type | Name | Description |
---|---|---|
Native |
it | An iterator representing the key-value pair to remove. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the iterator is invalid. |