docs.unity3d.com
    目次を表示する/隠す

    Struct NativeParallelHashMap<TKey, TValue>.Enumerator

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

    Namespace: Unity.Collections
    Syntax
    [NativeContainer]
    [NativeContainerIsReadOnly]
    public struct Enumerator : IEnumerator<KeyValue<TKey, TValue>>, IDisposable, IEnumerator
    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 readonly 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
    Boolean

    True if Current is valid to read after the call.

    Reset()

    Resets the enumerator to its initial state.

    Declaration
    public void Reset()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)