Struct NativeHashSet<T>.Enumerator | Collections | 0.15.0-preview.21
docs.unity.cn
    Show / Hide Table of Contents

    Struct NativeHashSet<T>.Enumerator

    Implements iterator over the container.

    Namespace: Unity.Collections
    Syntax
    [NativeContainer]
    [NativeContainerIsReadOnly]
    public struct Enumerator : IEnumerator<T>, IEnumerator, IDisposable

    Properties

    Current

    Gets the element at the current position of the enumerator in the container.

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

    Methods

    Dispose()

    Disposes enumerator.

    Declaration
    public void Dispose()

    MoveNext()

    Advances the enumerator to the next element of the container.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean

    Returns true if the iterator is successfully moved to the next element, otherwise it returns false.

    Reset()

    Resets the enumerator to the first element of the container.

    Declaration
    public void Reset()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Saturday, January 23, 2021