EntityMap_TKey_.KeyEnumerator.md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.EntityMap<TKey>

EntityMap.KeyEnumerator Struct

Enumerates the TKey of a EntityMap<TKey>.

public struct EntityMap<TKey>.KeyEnumerator :
System.Collections.Generic.IEnumerator<TKey>,
System.Collections.IEnumerator,
System.IDisposable

Type parameters

TKey

Implements System.Collections.Generic.IEnumerator<TKey>, System.Collections.IEnumerator, System.IDisposable

Properties
CurrentGets the TKey at the current position of the enumerator.
Methods
Dispose()Releases all resources used by the KeyEnumerator.
MoveNext()Advances the enumerator to the next TKey of the EntityMap<TKey>.
Explicit Interface Implementations
System.Collections.IEnumerator.CurrentGets the TKey at the current position of the enumerator.
System.Collections.IEnumerator.Reset()Sets the enumerator to its initial position, which is before the first element in the collection.