Skip to content
CShift0.45

DictionaryEnumerator<TKey,

Struct · namespace System · Since 0.42

struct DictionaryEnumerator<TKey, TValue>

The cursor of foreach over a Dictionary (Dictionary<TKey, TValue>.GetEnumerator): a value that holds the dictionary’s storage and a position; nothing is allocated.

Name Description
Over A cursor before the first entry of the storage of a dictionary.
static DictionaryEnumerator<TKey, TValue> Over(DictionaryState<TKey, TValue>[] state)

A cursor before the first entry of the storage of a dictionary.

Name Description
MoveNext Moves to the next entry; false after the last one.
Current The current entry, as a tuple (Key, Value).
bool MoveNext()

Moves to the next entry; false after the last one.

Tuple2<TKey, TValue> Current()

The current entry, as a tuple (Key, Value).