Class NetworkDictionary<TKey, TValue>
- Namespace
- Netick
- Assembly
- Netick.dll
A networked Dictionary<TKey, TValue> collection.
public sealed class NetworkDictionary<TKey, TValue> : NetworkDictionary, INetworkCollection, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : unmanaged where TValue : unmanaged
Type Parameters
TKey
TValue
- Inheritance
-
NetworkDictionary<TKey, TValue>
- Implements
-
IEnumerable<KeyValuePair<TKey, TValue>>
- Inherited Members
Constructors
NetworkDictionary(int)
public NetworkDictionary(int capacity)
Parameters
capacity
int
Properties
Count
public int Count { get; }
Property Value
this[TKey]
public TValue this[TKey key] { get; set; }
Parameters
key
TKey
Property Value
- TValue
Methods
Add(TKey, TValue)
public bool Add(TKey key, TValue value)
Parameters
key
TKeyvalue
TValue
Returns
Clear()
public void Clear()
ContainsKey(TKey)
public bool ContainsKey(TKey key)
Parameters
key
TKey
Returns
ContainsValue(TValue)
public bool ContainsValue(TValue value)
Parameters
value
TValue
Returns
GetEnumerator()
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<TKey, TValue>>
InternalInit(INetickNetworkScript, int*, int, int)
public override void InternalInit(INetickNetworkScript beh, int* state, int elementSizeWords, int flags)
Parameters
beh
INetickNetworkScriptstate
int*elementSizeWords
intflags
int
InternalReset()
public override void InternalReset()
Remove(TKey)
public bool Remove(TKey key)
Parameters
key
TKey
Returns
SetKeyValue(TKey, TValue)
public bool SetKeyValue(TKey key, TValue value)
Parameters
key
TKeyvalue
TValue
Returns
TryGetValue(TKey, out TValue)
public bool TryGetValue(TKey key, out TValue value)
Parameters
key
TKeyvalue
TValue