A read-only version of NetworkDictionary<TKey,TValue>.
More...
|
|
V | Get (K key) |
| | Returns the value for the given key. Will throw an error if the key is not found.
|
| bool | TryGet (K key, out V value) |
| | Attempts to get the value for a given key. If found, returns true.
|
|
|
int | Capacity [get] |
| | The maximum number of entries this dictionary may contain.
|
|
int | Count [get] |
| | Current number of key/value entries in the Dictionary.
|
A read-only version of NetworkDictionary<TKey,TValue>.
- Template Parameters
-
| K | The type of the key. |
| V | The type of the value. |
◆ TryGet()
| bool TryGet |
( |
K | key, |
|
|
out V | value ) |
Attempts to get the value for a given key. If found, returns true.
- Parameters
-
| key | The key to remove. |
| value | Returns value of removed item. Returns default value if key did not exist. |
- Returns
- Returns true if key was found.