Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Remove

Removes a key and its associated value(s).
Read time 1 minuteLast updated 13 days ago

Definition

Remove(T)

Removes a key and its associated value(s).
public int Remove(TKey key)

Parameters

key

T
The key to remove.

Returns

Type

Description

intThe number of removed key-value pairs. If the key was not present, returns 0.

Remove<T>(T, T)

Removes all key-value pairs with a particular key and a particular value.
public void Remove<TValueEQ>(TKey key, TValueEQ value) where TValueEQ : unmanaged, IEquatable<TValueEQ>

Parameters

key

T
The key of the key-value pairs to remove.

value

T
The value of the key-value pairs to remove.

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<T>)

Removes a single key-value pair.
public void Remove(NativeParallelMultiHashMapIterator<TKey> it)

Parameters

An iterator representing the key-value pair to remove.