docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct UnsafeParallelHashMap<TKey, TValue>.Enumerator

    An enumerator over the key-value pairs of a hash map.

    Namespace: Unity.Collections.LowLevel.Unsafe
    Assembly: Unity.Collections.dll
    Syntax
    public struct UnsafeParallelHashMap<TKey, TValue>.Enumerator
    Remarks

    In an enumerator's initial state, Current is not valid to read. From this state, the first MoveNext() call advances the enumerator to the first key-value pair.

    Properties

    Current

    The current key-value pair.

    Declaration
    public KeyValue<TKey, TValue> Current { get; }
    Property Value
    Type Description
    KeyValue<TKey, TValue>

    The current key-value pair.

    Methods

    Dispose()

    Does nothing.

    Declaration
    public void Dispose()

    MoveNext()

    Advances the enumerator to the next key-value pair.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    bool

    True if Current is valid to read after the call.

    Reset()

    Resets the enumerator to its initial state.

    Declaration
    public void Reset()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)