docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ReadOnlyStructSpan<T>.Enumerator

    Provides an enumerator for the elements of ReadOnlyStructSpan.

    Implements
    IEnumerator<T>
    IEnumerator
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.XR.CoreUtils.Collections
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public struct ReadOnlyStructSpan<T>.Enumerator : IEnumerator<T>, IEnumerator, IDisposable

    Properties

    Current

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

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

    Thrown if the current position is outside the bounds of the ReadOnlyStructSpan.

    Methods

    MoveNext()

    Advances the enumerator to the next element of the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    bool

    true if the next position is within the bounds of the collection. Otherwise, false.

    Reset()

    Sets the enumerator to its initial position, which is before the first element in the collection.

    Declaration
    public void Reset()

    Implements

    IEnumerator<T>
    IEnumerator
    IDisposable
    In This Article
    Back to top
    Copyright © 2026 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)