Table of Contents

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

TKey
TValue
Implements
IEnumerable<KeyValuePair<TKey, TValue>>
Inherited Members

Properties

Count

public int Count { get; }

Property Value

int

this[TKey]

public TValue this[TKey key] { get; }

Parameters

key TKey

Property Value

TValue

Methods

ContainsKey(TKey)

Determines whether the dictionary contains the specified key.

public bool ContainsKey(TKey key)

Parameters

key TKey

The 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

value TValue

The 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

key TKey
value TValue

Returns

bool