Struct NativeMultiHashMap<TKey, TValue>.KeyValueEnumerator
Implements iterator over the container.
Namespace: Unity.Collections
Syntax
[NativeContainer]
[NativeContainerIsReadOnly]
public struct KeyValueEnumerator : IEnumerator<KeyValue<TKey, TValue>>, IEnumerator, IDisposable
Properties
Current
Gets the element at the current position of the enumerator in the container.
Declaration
public KeyValue<TKey, TValue> Current { get; }
Property Value
Type | Description |
---|---|
KeyValue<TKey, TValue> |
Methods
Dispose()
Disposes enumerator.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next element of the container.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean | Returns true if the iterator is successfully moved to the next element, otherwise it returns false. |
Reset()
Resets the enumerator to the first element of the container.
Declaration
public void Reset()