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.
Static methods
Section titled “Static methods”| 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.
Methods
Section titled “Methods”| Name | Description |
|---|---|
MoveNext |
Moves to the next entry; false after the last one. |
Current |
The current entry, as a tuple (Key, Value). |
MoveNext
Section titled “MoveNext”bool MoveNext()Moves to the next entry; false after the last one.
Current
Section titled “Current”Tuple2<TKey, TValue> Current()The current entry, as a tuple (Key, Value).