Struct NetworkDictionarySnapshot<TKey, TValue>
- Namespace
- Netick
- Assembly
- Netick.dll
A snapshot of the state of a NetworkDictionary<TKey, TValue> collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call.
public struct NetworkDictionarySnapshot<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : unmanaged where TValue : unmanaged
Type Parameters
TKeyTValue
- Implements
-
IEnumerable<KeyValuePair<TKey, TValue>>
- Inherited Members
Properties
Count
public int Count { get; }
Property Value
this[TKey]
public TValue this[TKey key] { get; }
Parameters
keyTKey
Property Value
- TValue
Methods
ContainsKey(TKey)
Determines whether the dictionary contains the specified key.
public bool ContainsKey(TKey key)
Parameters
keyTKeyThe key to locate in the dictionary.
Returns
- bool
true if the dictionary contains an element with the specified key; otherwise, false.
ContainsValue(TValue)
Determines whether the dictionary contains a specific value.
public bool ContainsValue(TValue value)
Parameters
valueTValueThe value to locate in the dictionary.
Returns
- bool
true if the value is found; otherwise, false.
GetEnumerator()
public NetworkDictionarySnapshot<TKey, TValue>.Enumerator GetEnumerator()
Returns
- NetworkDictionarySnapshot<TKey, TValue>.Enumerator
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
Parameters
keyTKeyvalueTValue