docs.unity.cn
    Show / Hide Table of Contents

    Struct NativeMultiHashMap<TKey, TValue>.Enumerator

    An enumerator over the values of an individual key in a multi hash map.

    Namespace: Unity.Collections
    Syntax
    public struct Enumerator : IEnumerator<TValue>
    Remarks

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

    Properties

    Current

    The current value.

    Declaration
    public TValue Current { get; }
    Property Value
    Type Description
    TValue

    The current value.

    Methods

    Dispose()

    Does nothing.

    Declaration
    public void Dispose()

    GetEnumerator()

    Returns this enumerator.

    Declaration
    public NativeMultiHashMap<TKey, TValue>.Enumerator GetEnumerator()
    Returns
    Type Description
    NativeMultiHashMap.Enumerator<>

    This enumerator.

    MoveNext()

    Advances the enumerator to the next value of the key.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean

    True if Current is valid to read after the call.

    Reset()

    Resets the enumerator to its initial state.

    Declaration
    public void Reset()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, September 29, 2021