Struct NativeMultiHashMap<TKey, TValue>.KeyValueEnumerator
An enumerator over the key-value pairs of a multi hash map.
Namespace: Unity.Collections
Assembly: Unity.Collections.dll
Syntax
[NativeContainer]
[NativeContainerIsReadOnly]
public struct NativeMultiHashMap<TKey, TValue>.KeyValueEnumerator
Remarks
A key with N values is visited by the enumerator N times.
In an enumerator's initial state, <xref href="Unity.Collections.NativeMultiHashMap%602.KeyValueEnumerator.Current" data-throw-if-not-resolved="false"></xref> is not valid to read.
The first <xref href="Unity.Collections.NativeMultiHashMap%602.KeyValueEnumerator.MoveNext" data-throw-if-not-resolved="false"></xref> call advances the enumerator to the first key-value pair.
Properties
Current
The current key-value pair.
Declaration
public KeyValue<TKey, TValue> Current { get; }
Property Value
Type | Description |
---|---|
KeyValue<TKey, TValue> | The current key-value pair. |
Methods
Dispose()
Does nothing.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next key-value pair.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | True if Current is valid to read after the call. |
Reset()
Resets the enumerator to its initial state.
Declaration
public void Reset()