Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeHashMap<TKey, TValue>.Enumerator

An enumerator over the key-value pairs of a container.
Read time 1 minuteLast updated 11 days ago

Definition

public struct NativeHashMap<TKey, TValue>.Enumerator : IEnumerator<KVPair<TKey, TValue>>, IEnumerator, IDisposable

Remarks

In an enumerator's initial state, NativeHashMap<TKey, TValue>.Enumerator.Current is not valid to read. From this state, the first NativeHashMap<TKey, TValue>.Enumerator.MoveNext call advances the enumerator to the first key-value pair.

Properties

Property

Description

CurrentThe current key-value pair.

Methods

Method

Description

DisposeDoes nothing.
MoveNextAdvances the enumerator to the next key-value pair.
ResetResets the enumerator to its initial state.